<>这个算法不好,数不 大于2559</P><> mov ax,1235</P><>result: mov bx,addr
mov dh,10
mov si,0
loop3: div dh
mov [bx],al
add ah,30h
mov num[si],ah
inc si
mov ah,0
mov al,[bx]
cmp al,0
jnz loop3
dec si
loop4: mov dl,num[si]
mov ah,02h
int 21h
dec si
jge loop4
ret
</P> |