You are on page 1of 1

Solution Quiz 2 (b)

If (AL>BL) OR (BL > CL)


X = 1;
Else
X = 0;

CMP Al, Bl
// Comparing Al and BL
Ja L1
// Jump to L1 if AL is greater than BL if not then move next
CMP BL, CL
// Comparing CL and BL
Ja L1
// Jump to L1 if BL is greater than CL if not then move next
MOV X, 0 ,
// Execution of else command
L1:
//Label L1
MOV X, 1
// Executed if condition is true

Page 1 of 1

You might also like