Question: PROBLEM 6 A) Translate last two ARMv8 assembly instructions to 32-bit binary machine code. Give your answer in hexadecimal. Assume that the code for .GE

PROBLEM 6

A) Translate last two ARMv8 assembly instructions to 32-bit binary machine code. Give your answer in hexadecimal. Assume that the code for .GE is 0xA.

loop: ADD X9,X9,8

LDUR X19,[X9,#0]

CMP X19,X0

B.GE loop

Instruction CMP: 0x _______________

Instruction B.GE: 0x _______________

B) What value is left in X0 after the following code is run (Remember ARMv8 is big endian)? The label func located at 0x400040.

func: ADRP X1,func

ADDI X1,X1,:lo12:func

ORR X2, XZR, 0x2

ADD X10, XZR, XZR

ADD X0, XZR, XZR

STUR X1, [X2, 0]

LDURB X0, [X2, 7]

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!