|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
data segment
dd 100001
dw 100
dw 0
data ends
code segment
asd: mov ax, data
mov ds, ax
mov bx, 0
mov ax, [bx]
add bx, 2
mov dx, [bx]
mov cx, ds:[4]
div cx
mov ax,4c00H
int 21H
code ends
end asd
这样就不会报错
code segment
asd: mov ax, data
mov ds, ax
mov bx, 0
mov ax, [bx]
add bx, 2
mov dx, [bx]
div ds:[4]
mov ax,4c00H
int 21H
code ends
end asd
这样就会报错
code segment
asd: mov ax, data
mov ds, ax
mov bx, 0
mov ax, [bx]
add bx, 2
mov dx, [bx]
div word ptr ds:[4]
mov ax,4c00H
int 21H
code ends
end asd
这样又不会报错呢
|
|