i`ve tried to write a code that take two digit number from user and multiply it by 9 then display the result : first digit is 1 then second digit is 1 so it will be 11 * 9 =99 but it give another number this is my code :
.MODEL SMALL
.DATA
NUM1 DB ?
NUM2 DW ?
NUM3 DB ?
NUM4 DB ?
RESULT DW ?
.CODE
MOV AX,DATA
MOV DS,AX
L1:MOV AH,1
INT 21H
SUB AL,30H
MOV dl,10
MUL dl
MOV NUM1,AL
L2:MOV AH,1
INT 21H
SUB AL,30H
ADD AL,NUM1
AAM
ADD AH,30H
ADD AL,30H
MOV dx,AX
L3:
MOV Bh,9
MUL Bh
MOV BL,AL
MOV BH,AH
MOV AH,2
MOV DL,al
INT 21H
MOV AH,2
MOV DL,bh
INT 21H