Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 itestar2
- jmp exitstar
- condstar2:
- mov bl,M
- cmp j,bl
- jl itestar2
- jmp iterstar1
- itestar2:
- lea dx, str
- mov ah,9
- int 21h
- inc j
- jmp condstar2
- iterstar1:
- lea dx, nl
- mov ah,9
- int 21h
- inc i
- jmp condstar1
- ;newline:
- exitstar:
- endp main
- end main
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement