Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider the two following assembly files test.s test2.s .globl test .globl test

ID: 3726892 • Letter: C

Question

Consider the two following assembly files test.s test2.s .globl test .globl testVar .section .text test: .globl test2 .globl test2Var .section .text test2: ADRP X2, test 2Var ADD X2, X2, :1o12:test2Var LDUR X3, [X2, 0] ADD X3, X3, 1 STUR X3, [X2, 0] ADRP X0, mysteryStr ADD X0, X0, :lo12:mysteryStr BR X30 ADRP X2, testVar ADD X2, X2, :1012:testVar LDUR X3, [X2, 0] SUB X3, X3, 1 STUR X3, [X2, 0] ADRP X0, testString ADD X0, X0, :lo12:testString BR X30 .section .data testVar: .quad 0xA .section .data test2Var: .quad 0xA testString: .asciiz "Fill String" Fill out each object file's data section. If a value isnt initialized, write N/A. test.o NameInitialized Value test2.o Name Initialized Valuce

Explanation / Answer

Test.0 Relocation Table

Line #:ADRP X2,test2Var

InstructionType:ADRP

Dependency:ADD

Line #:LDUR X2,X2:lol2test2Var

Instruction type:LDUR

Dependency: ADD

Line #: STUR X3, [ X2,0]

InstructionType :STUR

Dependency: ADD

Line #:BR X30

Instruction type: BR

Test 2.0 RelocationTable

Line #: ADRP X2, testVar

Instruction type : ADD

Dependency: ADD

Line #: LDUR X3,[X2,0]

Instruction type: LDUR

Dependency: SUB ie. Subtract

Line #: STUR X3,[X2,0]

Instruction type: STUR

Line #: ADRP X0,testString

Instruction type: ADRP

Dependency:ADD

Line #: BR X30

Instruction type: BR