Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Before the start of each instruction below, assume the following conditions exis

ID: 644807 • Letter: B

Question

Before the start of each instruction below, assume the following conditions exist: the registers initially contain these values: R1=0x12, R2=0xA3, R3=0x3, R4=0xBFDC; all memory locations contain a data byte equal to the lor byte of its address (e.g. location 0x082a contains 0x2a, location 0x1237 contains 0x37). Which registers or memory contents are changed and what are the final values (in hex) in these modified registers/memory after each instruction executes? Box the final answers and clearly show how you found them. NOTE: each instruction executes with the SAME initial conditions do not interpret them as being executed in sequence they do NOT affect each other.

Explanation / Answer

1)write value in R2 to R1 Logical Shift Left R3

R1=R2 Logical Shift Left R3

2)Load Signed by or Halfword,Load value and sign extended it to 32 bits

R3=Content of R4+R1

3)Reverse Subtract

R4=R3-R2

4)Load Multiple Increment before base address ,Update R1 before used,load registers R2 to R3

5)ADD R4=R1+R2 Rotate right by 4 postions

6)Store Mulitple Decrement After the base address ,Post decrement and store the the result in R1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote