Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *SIR EDITED*
- org 100h
- .stack 100h
- .data
- str db "*$"
- i db 0
- j db 0
- N db 5
- M db 5
- NL DB 0AH,0DH, "$"
- .code
- main proc
- mov dx, @data
- mov ds, dx
- mov i,0 ; initialize with 0
- mov j,0
- condstar1:
- mov cl,N
- cmp i, cl
- jl iterstar1
- jmp exitstar
- iterstar1:
- ;================
- condstar2:
- 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
- itestar2:
- lea dx, str
- mov ah, 9
- int 21h
- inc str ;star ++
- jmp condstar2
- exitstar:
- ;===============
- lea dx, nl
- mov ah,9
- int 21h
- inc i
- jmp condstar2
- exitstar:
- endp main
- end main
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement