Question: 18. Consider the following code: Assume $16 has a valid RAM address. addi $8, $0, 5 sw $8, 4(516) addi $16, $16,4 lw $9. 01$16)

18. Consider the following code: Assume $16 has a valid RAM address. addi $8, $0, 5 sw $8, 4(516) addi $16, $16,4 lw $9. 01$16) After executing the above code in sequence, which value will be in $9? a. 5 b 16+4 20 c $16 4 19. Consider the following code: Assume $16 has the starting address of the array A w $8, 0($16) sw $8, 41$16) Which of the following Java code describes the above MIPS code c. 1]-A10] 20. Which of the following gives the RTL description of the MIPS code, sw $8, 4(516) a. MemlR(811 R[16] + 0 b. Mem[R116] + 4] R[8] c. R18] mem[R116] + 4] d. R[16] memIRI8] + 4] 21. Which of the following is the equivalent machine code for the MIPS ISA code, add $8, $9, $9 [hint: the fn-code of add is 32 a. 000000 01001 01001 01000 00000 100000 b. 000000 10001 10001 10000 00000 10000 c. 000000 10001 10001 10000 00000 10000 d. 000000 10001 10001 10000 00000 10000 22. Whieh s the folowi S code or the tolowinn in hex digits, 01294020? a. addi $9, $9,4 b. lw $9, 4(59) c. add $8, $9, $9 d. sub $8, $9, $9 //addi's op-code is 34 //sw's op-code is 35 //add's fn-code is 32 //sub's fn-code is 36
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
