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

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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!