怎么才能在屏幕上用循环结构完成"九九表"的功能
一个嵌套循环
numberA db 0 ;乘数
numberB db 0 ;被乘数
mov ax,0
mov cl,10
againA:
inc numberA
cmp cl,numberA
jz exit
againB:
inc numberB
cmp cl,numberB
jz againA
print:
mov al,numberA
add al,30h
mov dl,al
mov ah,2
int 21h ;print numberA
mov dl,'*'
mov ah,2
int 21h ;print '*'
mov al,numberB
add al,30h
mov dl,al
mov ah,2
int 21h ;print numberB
mov dl,'='
mov ah,2
int 21h ;print '='
call printNum ;print product ,to pass over the procedure.
mov dl,','
mov ah,2
int 21h
jmp againB
[此贴子已经被作者于2006-5-22 12:12:25编辑过]