Question: Using the sheet, no 1 , run step by step the next program until the End program label. 0 1 2 3 4 5 6

Using the sheet, no 1, run step by step the next program until the End program label.
0123456789 A B C D E F
Table10x210 B3 D7 E20F B3 D7 E5 AF E20F 11131719171B
Table20x2201D 1F 21 A6 F4 D92325 A4 B3 D7 E20F 111317
Table30x230191B 1D 1F D7 E5 AF E20F 11 D92325 A4 C2 A0
Table40x240
Table50x250
R0 R1 R2 R3 R4 R5 R6 R7 R0 R9
0000000000
*************************************************************
; Assembly Program for Tiva C Series TMC123GHPM
; This program compared numbers from the Table1
; Roman Lopez Ph. D.9/23/2017
; Assembly Code in .txt section
.global main
.text
main:
ADR R2,Table1 ;Set R2=Address Table1
ADR R3,Table2 ;Set R3=Address Table2
ADR R4,Table3 ;Set R4=Address Table3
ADR R5,Table4 ;Set Address Table4
MOV R6,#3
Loop:
LDRB R0,[R2],#1
LDRB R1,[R2]
CMPS R0,R1
BLT ALFA0
BEQ ALFA1
BGT ALFA2
B main
ALFA0: LSRB R0,#2
STRB R0,[R3],#2
B ALFA3
ALFA1: RORB R0, #2
STRB R0,[R4],#3
B ALFA3
ALFA2: SUBS R0,#2
STRB R0,[R5,#2]!
ALFA3: SUBS R6,#1
BNE Loop
; ****** END PROGRAM ********
STOP: B STOP
NOP
NOP
1) What is the final value of the registers?
2) What is the final value of the table4?
3) What is the final value of the table?

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!