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
- var dw ?
- .code
- main proc
- mov ah,01h
- int 21h
- mov bl,al
- mov bh,0
- mov var,bx
- sub var,48
- mov ah,02
- mov dx,0dh
- int 21h
- mov dx,0ah
- int 21h
- mov cx,var
- l1:
- mov bx,0
- while:
- mov ah,02h
- mov dx,42
- int 21h
- inc bx
- cmp bx,var
- jle while
- mov ah,02
- mov dx,0dh
- int 21h
- mov dx,0ah
- int 21h
- loop l1
- end main proc
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement