jeanlove 发表于 2010-02-22 17:20

我的这个汇编程序没有除法,为何提示Divide overflow?

我在windows上面用debug得到一个.com,输出一个字符(C)

D:\>debug
-a100
1380:0100 mov dl,43
1380:0102 mov ah,02
1380:0104 int 21
1380:0106 int 20
1380:0108
-N my.com
-RCX
CX 0000
:7
-W
Writing 00007 bytes
-q

D:\>my.com
C
Divide overflow

D:\>
这是为什么呢?

jeanlove 发表于 2010-02-23 09:25

有人回答一下么?

jjj137 发表于 2010-02-23 11:54

没人回答,可能因为大部分都是研究 Linux 的吧……

system888net 发表于 2010-02-23 19:36

d:\>debug my.com

-u

-p or s
...
-p or s

qtdszws 发表于 2010-02-24 16:25

C:\Users\zws>debug my.com
-g
C
Program terminated normally
-q

至于除零错,跟你的程序无关,可能是ntvdm的问题吧

hellioncu 发表于 2010-03-02 10:54

cx应该是8而不是7,100 ~ 107 是8字节
页: [1]
查看完整版本: 我的这个汇编程序没有除法,为何提示Divide overflow?