我的这个汇编程序没有除法,为何提示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:\>
这是为什么呢? 有人回答一下么? 没人回答,可能因为大部分都是研究 Linux 的吧…… d:\>debug my.com
-u
-p or s
...
-p or s C:\Users\zws>debug my.com
-g
C
Program terminated normally
-q
至于除零错,跟你的程序无关,可能是ntvdm的问题吧 cx应该是8而不是7,100 ~ 107 是8字节
页:
[1]