.MODEL SMALL
.STACK 100H
.DATA
.CODE
MAIN PROC
MOV BL, 5
MOV BH, 6
CMP BL, BH
JG lEVEL
MOV AH, 2
ADD BH, 48
MOV DL, BH
INT 21H
JMP EXIT
LEVEL:
MOV AH, 2
ADD BL, 48
MOV DL, BL
INT 21H
EXIT:
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN
To embed this project on your website, copy the following code and paste it into your website's HTML: