Question: Which choices contain correct implementations of the following pseudocode? ( Assume that all values are unsigned ) : if ( A > B ) C

Which choices contain correct implementations of the following pseudocode? (Assume that all values are unsigned):
if( A > B )
C =5;
else
C =6;
a.
ADR R1, A
ADR R2, B
ADR R3, C
LDR R4,[R1]
LDR R5,[R2]
CMP R4,R5
BLE L2
MOV R6, #5
STR R6,[R3]
B L2
L1 MOV R6, #6
STR R6,[R3]
L2
b.
ADR R1, A
ADR R2, B
ADR R3, C
LDR R4,[R1]
LDR R5,[R2]
CMP R4,R5
BGT L1
MOV R6, #5
STR R6,[R3]
B L2
L1 MOV R6, #6
STR R6,[R3]
L2
c.
ADR R1, A
ADR R2, B
ADR R3, C
LDR R4,[R1]
LDR R5,[R2]
CMP R4,R5
BGT L1
MOV R6, #6
STR R6,[R3]
B L2
L1 MOV R6, #5
L2 STR R6,[R3]

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!