[求助]汇编写的九九乘法表 显示不对,不知道错在哪?
以下是我用汇编编的一个九九乘法的程序 ,运行时显示积时有点问题。可又不知该怎么改。能帮帮我吗?谢谢Cseg segment
assume cs:cseg
start: mov bl,1
mov cx,9
loop1: mov bh,1
mov di,cx
xor cx,cx
mov cx,bl
loop2: mov dl,bh
add dl,30h
mov ah,02h
int 21h
mov dl,'*'
mov ah,02h
int 21h
mov dl,bl
add dl,30h
mov ah,02h
int 21h
mov dl,'='
mov ah,02h
int 21h
mov al,bl
mul bh
aam
mov dl,ah
add dl,30h
mov ah,02h
int 21h
mov dl,al
add dl,30h
mov ah,02h
int 21h
mov dl,' '
mov ah,02h
int 21h
cmp bh,bl
JZ C
inc bh
loop loop2
C: inc bl
mov cx,di
mov dl,0ah
mov ah,02h
int 21h
mov dl,0dh
mov ah,02h
int 21h
loop loop1
mov ah,4ch
int 21h
Cseg ends
end start