org 100h
wow dw 1234
wew dw 2424
waw dw 2564
wiw dw 2323
mov ax,wow
mov ax,wew
mov ax,waw
mov ax,wiw
call print_ax
int 20h
print_ax proc
cmp ax, 0
jne print_ax_r
push ax
mov al, '0'
mov ah, 0eh
int 10h
pop ax
ret
print_ax_r:
pusha
mov dx, 0
cmp ax, 0
je pn_done
mov bx, 10
div bx
call print_ax_r
mov ax, dx
add al, 30h
mov ah, 0eh
int 10h
jmp pn_done
pn_done:
popa
ret
endp
Tidak ada komentar:
Posting Komentar