Question
4. Instruction execution (a) Follow the instructions below CONSECUTIVELY, and after each instruction write the value of destination register in decimal into the space provided.
4. Instruction execution
(a) Follow the instructions below CONSECUTIVELY, and after each instruction write the value of destination register in decimal into the space provided.
ORRI X0, X31, #5 // X0 =_________
SUBI X1, X0, #2 // X1 = _________
LSL X2, X1, #2 //X2 =_________
ADD X3, X2, X2 //X3 = _________
ANDI X4, X3, #13 //X4= _________
(b) For the following LEG8 assembly, assume that the registers X1 and X6, contain the values 20 and 256, respectively. Also, assume that memory contains the following values. What is the value of X0?
Address | Contents |
256 | 50 |
260 | 100 |
264 | 150 |
SUBI X6, X6, #20
ADD X6, X6, X1
LDUR X0, [X6, #8] //X0 = ________
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started