;shiyan.asm
.model small
.386
.data
buffer db 256 dup(0)
.stack
.code
.startup
mov eax,12345678h
lop1:mov ebx,10
mov edx,0
div ebx
push dx
cmp eax,0
jnz lop1
next:
pop edx
mov [di],dl
inc di
call disp
loop next
mov ah,4ch
int 21h
disp proc near
add dl,30h
mov ah,02h
int 21h
ret
disp endp
end