Professional Documents
Culture Documents
05 Activity 1
05 Activity 1
05 Activity 1
Instructions: Analyze the following simple programs below that utilize jump instructions. Fill the blanks with the correct comments that would
describe the process of the corresponding line of code. Then, answer the following questions in each program.
Program 1: (3 items x 3 points)
include 'emu8086.inc' ORG
100h
MOV AL, -2
CMP AL, 5 ; subtracts the value in AL with 5 (if AL<5, then ZF=0)
JLE label1 ; Jumps to label one if the value of AL is lessthan or equal to 5
PRINT 'AL > 5'
JMP exit label1:
PRINT 'AL <= 5' ; Prints the statement AL<=5
exit:
RET