Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Funkcja wyświetlająca liczbę zapisaną ax
- display PROC
- mov cx,0
- mov bx,10
- disp1:
- mov dx,0
- div bx ; ax <-ax/bx | dx <-ax%bx
- add dx,30h
- push dx
- inc cx
- cmp ax,0
- jnz disp1 ; dziel ax dopóki nie jest 0
- disp2:
- pop dx
- mov ah,2
- int 21h
- loop disp2
- ret
- display ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement