Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 3 Justify your answers a. 16 points) Trace the following code and provid Trace me following code and provide the values for eax, ebx,
Problem 3 Justify your answers a. 16 points) Trace the following code and provid Trace me following code and provide the values for eax, ebx, firstval, and sum. Line Source Code data firstval SDWORD-7 sum SWORD O .code mov eax, firstval add eax.0 sub firstval, 2 add sum,0A2h movsx ebx, sum] add (firstval], 4 11 xchg [firstval], ebx Final values: eax = ebre firstval = b. 12 point) If a break point was created at line 10. what would be the value of firstval after running the debugger? firstval = c. 110 point) Convert the following ARM assembly program (everything) into X86 program and then describe the differences between data movement instructions (do not use .386,.model..stack). @ This is an ARM program .section.data a: .word 12 b:.word 5 C: .word o .section text globl_start _start: Idr r1, -a Idr r1, [rl] Idr r2, =b Idr r2, (r2] sub r1, r1, r2 Idr r2, =c str r1, [r2] mov r7, #1 SVC #0 end Problem 3 Justify your answers a. 16 points) Trace the following code and provid Trace me following code and provide the values for eax, ebx, firstval, and sum. Line Source Code data firstval SDWORD-7 sum SWORD O .code mov eax, firstval add eax.0 sub firstval, 2 add sum,0A2h movsx ebx, sum] add (firstval], 4 11 xchg [firstval], ebx Final values: eax = ebre firstval = b. 12 point) If a break point was created at line 10. what would be the value of firstval after running the debugger? firstval = c. 110 point) Convert the following ARM assembly program (everything) into X86 program and then describe the differences between data movement instructions (do not use .386,.model..stack). @ This is an ARM program .section.data a: .word 12 b:.word 5 C: .word o .section text globl_start _start: Idr r1, -a Idr r1, [rl] Idr r2, =b Idr r2, (r2] sub r1, r1, r2 Idr r2, =c str r1, [r2] mov r7, #1 SVC #0 end
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