初学汇编,观察除0后int 0的效果。
assume cs:code
code segment
start:mov ax,3333h
mov bl,0
div bl
;mov ax,4c00h
;int 21h
code ends
end start
assume cs:code
code segment
start:mov ax,3333h
mov bl,0
div bl
mov ax,4c00h
int 21h
code ends
end start
都没有效果
但是debug下执行以下代码,会显示除0信息。
mov ax,3333h
mov bl,0
div bl
为什么?差了哪里?
谢谢!
------解决方案--------------------------------------------------------
1 将断点放在 div 0 后面看看
2 在纯dos中run
------解决方案--------------------------------------------------------
下一个dosbox谁用谁知道。
------解决方案--------------------------------------------------------
有出现;Divide overflow
代码:
assume cs:code
code segment
start:mov ax,3333h
mov bl,0
div bl
mov ax,4c00h
int 21h
code ends
end start