Question: Convert the assembly line to machine code. Answer in Hex: i.LDR r5, [ PC, #64] STR r5, [ r6, r7 ] ADD SP, SP, #21

Convert the assembly line to machine code. Answer in Hex:

i.LDR r5, [ PC, #64]

STR r5, [ r6, r7 ]

ADD SP, SP, #21

ADD SP, SP, #24

loop MOV r6, #20

ADD r6, #-1 ; negative 1

CMP r0, #13 ; this updates Z flag

BLT SKIP ; goto SKIP if r0 < 13

NOP

BGE loop ; go back, if r0 >= 13

Skip B Skip ; stay here trapped

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!