Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; You may customize this and other start-up templates;
- ; The location of this template is c:\emu8086\inc\0_com_template.txt
- org 100h
- .data
- msg1: db "Hello World",0DH,0AH,'$'
- msg2: db "Bye World",0DH,0AH,'$'
- .code
- main proc
- mov ax,0
- increment:
- inc ax
- mov bx,ax
- cmp bx,5
- jne print1
- je print2
- print1:
- mov dx,offset msg1
- mov ah,09h
- int 21h
- jmp increment
- print2:
- mov dx,offset msg2
- mov ah,09h
- jmp exit
- exit:
- mov ah,4ch
- int 21h
- main endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement