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,cx
- while: ;while loop
- mov ah,02h ;Star print
- mov dx,42
- int 21h
- dec bx ;Decrement
- cmp bx,1
- jge while
- mov ah,02
- mov dx,0dh ;new line
- int 21h
- mov dx,0ah
- int 21h
- loop l1 ;loop
- end main proc
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement