汇编作业10-2除法溢出
本帖最后由 Mr.HO 于 2019-6-25 18:57 编辑assume cs:code
code segment
ho:mov dx,0fh
mov ax,4240h
mov cx,0ah
call divdw
mov ax,4c00h
int 21h
divdw:
push ax
mov ax,dx
mov dx,0
div cx
mov bx,ax
pop ax
div cx
mov cx,dx
mov dx,bx
ret
code ends
end ho
页:
[1]