Question: 1. Use the following program for this question data .halfword 7, 3 num: .word 9 globl .text main mairn lui t0, 0x1001 top: lw $t1,

1. Use the following program for this question data .halfword 7, 3 num: .word 9 globl .text main mairn lui t0, 0x1001 top: lw $t1, -4 ($t0) beq $s0, $s2, end jal func add $s0, $s1, $t0 andi $s0, $0, 0xFFFF top bne $s0, $0, top end: func sll $v0, $t1, 4 ra a. There are 5 labels in this code. If the .data section starts at 0x10010000 and the .text starts at Ox00400400, what is the value of each label? Include all labels from the program. 2.5 points b. What is the addressing mode for each instruction? There are 10 unique instructions. 2.5 points c. "Assemble" the program by converting it to the machine code (hex). 15 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
