mmicroprocessor.blogspot.com
.MODEL TINY
.CODE
.STARTUP
MOV AX,345Ah
MOV BX, AX
MOV CH, 4
PP: MOV AX, BX
ROL AX,4
ROL BX,4
AND AX, 000FH
ADD AX, 30H
CMP AX, '9'
JBE DP
ADD AL, 7
DP: MOV DL, AL
MOV AH, 2H
INT 21H
SUB CH,1
JNZ PP
MOV AH, 4CH
INT 21H
END
Output:
345A
No comments:
Post a Comment