Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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