尝试装配8086以分割两个数字并得到除法的结果,其余为
出于某种原因,它不能做我想做的事情
.MODEL SMALL
.STACK 64
.DATA
ResultOfDivision db ?
Divisor db ?
Dividend db ?
Remainder db ?
.CODE
开始: mov ax,@ DATA mov ds,ax
mov ah, 01
int 21H
sub al, 48
mov Divisor, al
mov ah, 01
int 21H
sub al, 48
mov Dividend, al
mov bl, 00
mov al, 00
mov bl, Divisor
mov al, Dividend
div bl
mov ResultOfDivision, al
mov Remainder, ah
mov dl, ResultOfDivision
add dl, 48
mov ah, 02
int 21H
mov dl, Remainder
add dl, 48
mov ah, 02
int 21H
mov ah, 4ch
int 21H
.EXIT
END start