Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 100h
- mov ax, 12345 ;35
- mov si, tekst_ispis
- inc si
- mov bx, ax
- provera:
- cmp bx, 0
- je print
- mov ax,bx
- cwd
- mov bx, 10
- div bx
- add dx, 48
- mov [si], dx
- mov bx, ax
- inc si
- jmp provera
- print:
- dec si
- print1:
- cmp [si], byte 0
- je kraj
- mov al,[si]
- mov ah, 0eh
- int 10h
- dec si
- jmp print1
- kraj:
- ret
- tekst_ispis: db 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement