PrintAX PROC NEAR
CMP AX,10
JAE HighAndEqulTen
MOV DL,AL
ADD DL,'0'
MOV AH,02; MOV AH,06也可以,why?
INT 21H
RET
HighAndEqulTen:
CWD
MOV BX,10
DIV BX
PUSH DX
CALL PrintAX
POP AX
CALL PrintAX
ret
PrintAX ENDP
汇编——打印AX的函数
最新推荐文章于 2023-10-13 15:39:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)