Question: Review the following MIPS assembly code. a. Write code that the assembler will assemble after macro expansion of the code. [Spts] b. Show the symbol

Review the following MIPS assembly code. a. Write code that the assembler will assemble after macro expansion of the code. [Spts] b. Show the symbol table for this code using relative index of instruction starting at 1. [Spts] add $argl, $argl, argl addi Sargl, argl, -1 .end macro macro mac2 (Sarg, arg2) macl (Sarg2) sub argl, Sargl, Sarg2 .end macro .text Ll addi $tl, $zero, 10 addi $t2, $zero, 5 L2: macl ($t2) mac2 (Stl, st2) beq $t1, t2, L4 L3: mac2 ($t1, $t2) ma c 1 (St2) L5: bne $t2, $tl, L2 Review the following MIPS assembly code. a. Write code that the assembler will assemble after macro expansion of the code. [Spts] b. Show the symbol table for this code using relative index of instruction starting at 1. [Spts] add $argl, $argl, argl addi Sargl, argl, -1 .end macro macro mac2 (Sarg, arg2) macl (Sarg2) sub argl, Sargl, Sarg2 .end macro .text Ll addi $tl, $zero, 10 addi $t2, $zero, 5 L2: macl ($t2) mac2 (Stl, st2) beq $t1, t2, L4 L3: mac2 ($t1, $t2) ma c 1 (St2) L5: bne $t2, $tl, L2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
