Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STAR PRINT 5
- org 100h
- .stack 100h
- .data
- str db "*$"
- star db 0
- starcount db 5
- .code
- main proc
- mov dx, @data
- mov ds, dx
- mov star,0 ; star=0 ; initialize with 0
- condstar:
- mov bl, starcount ; move to register for compare so, (bl = 5) now.
- cmp star, bl ; star < starcount | compare 0 < 5
- jl itestar ; jump less
- jmp exitstar
- itestar:
- lea dx, str
- mov ah, 9
- int 21h
- inc star ;star ++
- jmp condstar
- exitstar:
- endp main
- end main
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement