Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the two following assembly files: test2.s globl test2 section.text test.s .globl test globl testVar section .text .globl testZVar test: test2: ADRP X2, test2Var ADD

image text in transcribed

image text in transcribed

Consider the two following assembly files: test2.s globl test2 section.text test.s .globl test globl testVar section .text .globl testZVar test: test2: ADRP X2, test2Var ADD X2, X2, :lo12:test 2Var LDUR X3, [X2, 0] ADD X3, X3, 1 STUR X3, [X2, 0] ADRP XO, mysteryStr ADD XO, X0, :lo12:mysteryStr BR X30 ADRP X2, testVar ADD X2, X2, :lo12:testVar LDUR X3, [X2, 0] SUB X3, X3, 1 STUR X3, [X2, 0] ADRP Xo, testString ADD XO, X0, :lo12:testString BR X30 section.data testVar: .quad 0xA section .data test2Var: .quad 0xA testString: .asciiz "Fill String" Consider the two following assembly files: test2.s globl test2 section.text test.s .globl test globl testVar section .text .globl testZVar test: test2: ADRP X2, test2Var ADD X2, X2, :lo12:test 2Var LDUR X3, [X2, 0] ADD X3, X3, 1 STUR X3, [X2, 0] ADRP XO, mysteryStr ADD XO, X0, :lo12:mysteryStr BR X30 ADRP X2, testVar ADD X2, X2, :lo12:testVar LDUR X3, [X2, 0] SUB X3, X3, 1 STUR X3, [X2, 0] ADRP Xo, testString ADD XO, X0, :lo12:testString BR X30 section.data testVar: .quad 0xA section .data test2Var: .quad 0xA testString: .asciiz "Fill String

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

The Database Factory Active Database For Enterprise Computing

Authors: Schur, Stephen

1st Edition

0471558443, 9780471558446

More Books

Students also viewed these Databases questions

Question

How will these issues affect the grade levels you will teach?

Answered: 1 week ago

Question

Question 1 (a2) What is the reaction force Dx in [N]?

Answered: 1 week ago