Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago