Question: 1 1 . 8 LAB: Volume of a rectangular box - LDUR / STUR the result is stored at memory address 4 4 0 0

11.8 LAB: Volume of a rectangular box - LDUR/STUR the result is stored at memory address 4400 :
Note: Use the '+' button under the Registers and Memory display to initialize X19, X20, and the three dimensions in the memory.
593924.3663848.q3zqy7
LAB
ACTIVITY
11.8.1: LAB: Volume of a rectangular box - LDUR/STUR
010
Load default template...
Assembly
Line 1?? Type your code here.
Line 2// Do not initialize any register and
Line 3?? memory values here! This zyLab platform supports the following LEGv8 instructions:
Arithmetic: ADD, ADDS, ADDI, ADDIS, MUL, SDIV, SUB, SUBS, SUBI, SUBIS
Data transfer: LDURB, LDUR, LDURH, LDURSW, MOVK, MOVZ, STURB, STUR, STURH, STURW
Logical: AND, ANDI, EOR, EORI, ORR, ORRI, LSL, LSR
Conditional branch: B.HS, B.LO, B.EQ,
B.GT,
B.GE, B.HI,
B.LT, B.LE,
B.LS, B.MI,
B.NE,
B.VC,B.VS,
B.PL, CBZ, CBNZ
Unconditional jump: B, BL, BR
Given the dimensions of a rectangular box, write a program to calculate the volume of the box and store the result at memory address
Assume register X19 stores the memory address 4000, and register X20 stores the memory address 4400.
Assume also the dimensions are stored in the following memory locations:
Ex: If the dimensions are initialized in the simulator as:
the result is stored at memory address 4400 :
WARNING: Only use the commands provided in the final image. So, do not use commands such as MOV or CMP!
1 1 . 8 LAB: Volume of a rectangular box - LDUR /

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 Programming Questions!