来啊!快活啊! 遇到一个死循环解决不了了
目的:16x16打印00-ff的ascii字符问题:成功打印16x16的ascii字符,但是一直循环打印
assume cs:code ss:stack
stack segment
db 16 dup('0')
stack ends
code segment
start: mov sp, 16
mov ax, 0
mov dx, 0
mov cx, 16
mov bx, 0
L1: push cx
mov cx, 16
L2: cmp bl, 07h
jb print
cmp bl, 10h
ja print
jmp a1
print: mov al, 0
mov dl, bl
a2: mov ah, 02h
int 21h
mov dl, 20h
mov ah, 02h
int 21h
inc bl
loop L2
mov dl, 0dh
mov ah, 02h
int 21h
mov dl, 0ah
mov ah, 02h
int 21h
pop cx
loop L1
a1: mov dl, 23h
jmp a2
ending: mov ax, 4c00h
int 21h
code ends
end start