汇编10.3的dtoc简单实现
assume cs:code,ds:datadata segment
db 0,0,0,0,0
data ends
code segment
start: mov ax,12666
mov bx,data
mov ds,bx
mov si,0
call dtoc
dtoc: mov bx,10
mov cx,5
s: mov dx,0
div bx
add dl,30h
mov si,cx
mov ds:,dl
loop s
mov ax,4c00h
int 21h
code ends
end start
页:
[1]