.MODEL SMALL
.STACK
.DATA
.CODE
MAIN:
MOV AX,0506H ;AX=0506H
MOV CL,11 ;CL=0BH
AAD ;AX=0038H
DIV CL ;AX=0105H
MOV DL,AH
ADD DL,30H
MOV AH,02H
INT 21H
MOV DL,AL
ADD DL,30H
MOV AH,02H
INT 21H
MOV AH,4CH
INT 21H
END MAIN
Sorry,i am beginner. I got wrong when i try to display the result of DIV.I expected the screen will show 15, but it show 1a.
And i tried to use MOV BX,AX ,and use BX to show the value of AX. It got right!!
Do the INT21H have any restriction on AX ?