?? 99乘法表程序.txt
字號:
;print data
print macro x
mov dl,x
mov ah,02h
int 21h
endm
;Enter code
CR macro
print 10
print 13
endm
;----------------------------
data segment
i db 1
j db 1
data ends
code segment
main proc far
assume cs:code,ds:data
start:
push ds
sub ax,ax
push ax
mov ax,data
mov ds,ax
mov cx,9
;---------------------------
loop_1:
mov j,1
loop_2:
mov bl,j
cmp bl,i
jz exit
mov al,i
mul bl
mov bl,10
div bl
mov bx,ax
call printCode
call spacesub
inc j
jmp loop_2
exit:
mov al,i
mul bl
mov bl,10
div bl
mov bx,ax
call printCode
call entersub
inc i
loop loop_1
ret
main endp
printCode proc near
mov al,j
add al,30h
print al
print '*'
mov al,i
add al,30h
print al
print '='
cmp bl,0
jz isZero
add bl,30h
print bl
add bh,30h
print bh
ret
isZero:
print 20h
add bh,30h
print bh
ret
printCode endp
entersub proc near
CR
ret
entersub endp
spacesub proc near
print 20h
ret
spacesub endp
code ends
end start
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -