Question: Problem 2: Trace the following ARM program ADDI X4,XZR,#11 ADDI X5,XZR,#10 ADDI X6,XZR,#0 SUBS X7,X4,X5 B.LE L1 ADDI X6,XZR,#200 B L2 L1: L2: //
Problem 2: Trace the following ARM program ADDI X4,XZR,#11 ADDI X5,XZR,#10 ADDI X6,XZR,#0 SUBS X7,X4,X5 B.LE L1 ADDI X6,XZR,#200 B L2 L1: L2: // use ADDI to load decimal constant into register // use ADDI to load decimal constant into register // use ADDI to load decimal constant into register ADDI X6,XZR, #300 SUBI X6,X6,#50 Show final contents of registers X4,X5,X6,X7 X4 X5 X6 X7 // use ADDI to load decimal constant into register // use ADDI to load decimal constant into register Problem 2: Trace the following ARM program ADDI X4,XZR,#11 ADDI X5,XZR,#10 ADDI X6,XZR,#0 SUBS X7,X4,X5 B.LE L1 ADDI X6,XZR,#200 B L2 L1: L2: // use ADDI to load decimal constant into register // use ADDI to load decimal constant into register // use ADDI to load decimal constant into register ADDI X6,XZR, #300 SUBI X6,X6,#50 Show final contents of registers X4,X5,X6,X7 X4 X5 X6 X7 // use ADDI to load decimal constant into register // use ADDI to load decimal constant into register
Step by Step Solution
3.50 Rating (160 Votes )
There are 3 Steps involved in it
Lets trace the given ARM program step by step ADDI X4 XZR 11 X4 0 11 11 ADDI X5 XZR 10 X5 0 10 10 ... View full answer
Get step-by-step solutions from verified subject matter experts
