Question: Beginner-level Assembly Language: DO NOT USE ANY PSEUDO-INSTRUCTIONS -and- COMMENT EVERY LINE OF CODE - Answer each portion of the question (parts 'a', 'b', and

Beginner-level Assembly Language: DO NOT USE ANY PSEUDO-INSTRUCTIONS -and- COMMENT EVERY LINE OF CODE

-

Answer each portion of the question (parts 'a', 'b', and 'c') or don't answer at all. Make sure your program will work in a MIPS-programming language environment (.asm file), such as MARS MIPS simulator

-

Beginner-level Assembly Language: DO NOT USE ANY PSEUDO-INSTRUCTIONS -and- COMMENT EVERY LINE

Use the following program for this question. Assume the .data section starts at 0x10010000 and the .text starts at 0x00400010, Notice for this problem the starting PC be the default value so if vou iust type the code into the assemble, vour answers may not be correct .data num:.word 7 .globl .text main: main lui $t0, 0x1001 top: beg ?s0, ?0, end jal fund add ?s0, ?S0, $t0 addi $s0, $50, -! top bne S0, 0, top end func: Sra a. There are five labels in the code. What is the value of each label? b. What is the addressing mode for each instruction? There are 10 unique instructions C. Encode the program and give the machine code in hex. Be careful with the branch and jump instructions Use the following program for this question. Assume the .data section starts at 0x10010000 and the .text starts at 0x00400010, Notice for this problem the starting PC be the default value so if vou iust type the code into the assemble, vour answers may not be correct .data num:.word 7 .globl .text main: main lui $t0, 0x1001 top: beg ?s0, ?0, end jal fund add ?s0, ?S0, $t0 addi $s0, $50, -! top bne S0, 0, top end func: Sra a. There are five labels in the code. What is the value of each label? b. What is the addressing mode for each instruction? There are 10 unique instructions C. Encode the program and give the machine code in hex. Be careful with the branch and jump instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!