Question: AREA RESET, CODE, READONLY ENTRY START ADR R 4 , SRC LDR R 5 , = DST BL SUB 1 STOP B STOP SUB 1

AREA RESET, CODE, READONLY
ENTRY
START
ADR R4,SRC
LDR R5,=DST
BL SUB1
STOP B STOP
SUB1 LDR R0,[R4],#4
LDR R1,[R4],#4
CMP R0,R1
BGE FB1
LDR R0,[R4],#4
LDR R1,[R4],#4
ADD R0,R0,R1
MOV R2,#5
STR R2,[R5],#4
STR R0,[R5]
B AFT
FB1 LDR R0,[R4],#4
LDR R1,[R4]
SUB R0,R0,R1
STR R0,[R5,#4]
AFT MOV PC,LR
SRC DCD 0x20,0x40,0x30,0x10
AREA RESULT, DATA, READWRITE
DST DCD 0,0
END
Are the number of states taken for completion same for BGE instruction if the branch
(1) is taken (2) not taken? Please give the states are taken for each.

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 Programming Questions!