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

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!