| 2.32.1 The first three problems in this exercise assume that the function swap, instead of the code in Figure 2.24, is defined in C as follows: a. void swap(int *p, int *q){ int temp; temp=*p; *p=*q; *q=temp; } b. void swap(int *p, int *q){ *p=*p+*q; *q=*p-*q; *p=*p-*q; } [10] <2.13> Translate this function into MIPS assembler code. | |
| View Solution | |
| << Back | Next >> |