|
|
#2
zhu2240392012-10-11 14:50
|
程序代码:date segment
mulshu dw 0
bmul dw 0
muls dw 81 dup(?)
date ends
code segment
assume cs:code,ds:date
start: mov ax,date
mov ds,ax
mov si,offset muls
mulsm: mov ax,bmul
mul mulshu
mov [si],ax
inc si
inc bmul
cmp bmul,9
jle mulsm
inc mulshu
mov bmul,0
cmp mulshu,9
jle mulsm
mov ah,4ch
int 21h
code ends
end start[local]1[/local]
mulshu dw 0
bmul dw 0
muls dw 81 dup(?)
date ends
code segment
assume cs:code,ds:date
start: mov ax,date
mov ds,ax
mov si,offset muls
mulsm: mov ax,bmul
mul mulshu
mov [si],ax
inc si
inc bmul
cmp bmul,9
jle mulsm
inc mulshu
mov bmul,0
cmp mulshu,9
jle mulsm
mov ah,4ch
int 21h
code ends
end start[local]1[/local]
明白了 inc si 呵呵 要改成 add si,2
这个掉的大了, 你的编译器能编过去 我的编译器就不行 哎 哎 哎 