Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StarPrint type -1
- org 100h
- .stack 100h
- .data
- str db "*$"
- line db 0
- linecount db 3
- starcount db 0
- nl db 0dh, 0ah, "$"
- star db 0
- .code
- main proc
- mov dx, @data
- mov ds, dx
- mov line,0 ; i=0
- condition:
- mov al, linecount
- cmp line, al
- jl iter
- jmp exitloop
- ; iter:
- ;
- ; mov ah, 9
- ; lea dx,str
- ; int 21h
- ;
- ;inc i
- ;jmp condition
- iter:
- ;starcount = linecount - line
- mov al, linecount
- sub al, line
- mov starcount, al
- mov star, 0
- condstar:
- mov bl, starcount
- cmp star, bl
- jl iterstar
- jmp exitstar
- iterstar:
- lea dx, str
- mov ah, 9
- int 21h
- inc star
- jmp condstar
- exitstar:
- mov ah, 9
- lea dx, nl
- int 21h
- inc line
- jmp condition
- exitloop:
- endp main
- end main
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement