Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IDEAL
- MODEL small
- STACK 100h
- DATASEG
- Num equ 57
- ; --------------------------
- ; Your variables here
- ; --------------------------
- CODESEG
- start:
- mov ax, @data
- mov ds, ax
- ; --------------------------
- ; Your code here
- ; --------------------------
- xor cx,cx
- mov ax,Num
- convert:
- mov bx,0ah
- div bx
- add dx,30h
- push dx
- inc cx
- cmp ax,0
- je output
- jmp convert
- output:
- mov ah,2
- pop dx
- int 21h
- loop output
- exit:
- mov ax, 4c00h
- int 21h
- END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement