计算10001/100汇编实现,注释的地方为什么?
assume cs:codesg
codesg segment
start:
mov ax, 03e9h
mov bx, 0064h
;div bl ;right, al, ah
;div bx ;right, ax, dx
;div byte ptr bl ;(17) wrong parameters: DIV byte ptr bl
;div byte ptr bx ; divide error - overflow.
;div word ptr bl ;(19) wrong parameters: DIV word ptr bl
;div word ptr bx ; divide error - overflow.
mov ax, 4c00h
int 21h
codesg ends
end start
assume cs:codesg
codesg segment
start:
mov ax, 03e9h
mov bx, 0064h
;div bl ;right, al, ah
;div bx ;right, ax, dx
;div byte ptr bl ;(17) wrong parameters: DIV byte ptr bl
;div byte ptr bx ; divide error - overflow.
;div word ptr bl ;(19) wrong parameters: DIV word ptr bl
;div word ptr bx ; divide error - overflow.
mov ax, 4c00h
int 21h
codesg ends
end start