- 3 Write A Series Of Mips Instructions That Will Read The First Three Values In An Array A Into T2 Through T6 Assume 1 (136.48 KiB) Viewed 27 times
3. Write a series of MIPS instructions that will read the first three values in an array A into $t2 through $t6. Assume
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
3. Write a series of MIPS instructions that will read the first three values in an array A into $t2 through $t6. Assume
3. Write a series of MIPS instructions that will read the first three values in an array A into $t2 through $t6. Assume that the A base register is in $s1. 4. The following problems deal with translating from C code to MIPS code or MIPS code to C code. Assume that the signed variables f, g, h and i are assigned to registers $s0, $s1, $s2, $s3 respectively. Assume the base address of the integer arrays A and B are in registers $s4 and $s5 respectively. Translate the following MIPS code to C code. Please indicate which elements of integer array A and B are modified by this code. addi $t0, $s1, 4 sll $t0, $t0, 2 addi $t1, $s4, 4 lw $s2, 0($t1) sw $t0, 8($s5)