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 testVa

ID: 3726890 • Letter: C

Question

Consider the two following assembly files test.s test2.s globl test globl testVar section .text globl test2 globl test2Var .section .text test2: test: ADRP X2, test 2Var ADD X2, X2, :1o12:test2Var LDUR X3, [X2, 0] ADD X3, X3, 1 STUR X3, [X2, 0] ADRP XO, mysteryStr ADD X0, XO, :lo12:mysteryStr BR X30 ADRP X2, testVar ADD X2, X2, :1o12: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"

Explanation / Answer

Answer: .data section contains details of initialized global/static non-const objects.

1. test.o

2. test2.o:

Name Initialized Value testVar 0xA
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote