data segment
s dw 2 DUP(0)
sum dw 3 DUP(?)
jia dw 50 DUP(?)
n dw 0
data ends
code segment
assume cs:code,ds:data
main proc far
start: mov ax,data
mov ds,ax
mov ax,0
mov bx,0
mov di,offset jia
mov dx,0
mov cx,1000
mov si,0
mov [di],86a0h
mov [di+2],0001h
again: inc bx
add ax,bx
add si,bx
jc aa
loop again
mov s,ax
mov s+2,dx
mov ah,4ch
int 21h
aa: inc dx
loop again
mov s,ax
mov s+2,dx
mov ah,4ch
int 21h
main endp
code ends
end start
以上代码在存储器里是以十六进制存的。请问如何输出他的十进制结果呢?
[[it] 本帖最后由 Love嵌入式 于 2008-7-4 11:51 编辑 [/it]]