Pages

Sunday, January 17, 2016

Unconditional Jumps

Write a program that demonstrate unconditional Jumps

Program/Code:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
org 100h
mov AX, 35
JMP YES
NO:
MOV AH, 2
INT 21H
JMP EXIT_
YES:
MOV DL, 'A'
JMP NO
EXIT_:
ret
; Always Print: A

No comments:

Post a Comment