I am trying to shift the number input by user by 1, since SHL
is equivalent to the multiple of 2, this is why I am shifting the input by 2 to print the multiples of 2.
Here is my code,
MOV AH,01H
INT 21H
MOV DL,AL
MOV AH, 02H
INT 21H
MOV CX,10
L1:
SHL DL,1
MOV AH, 02H
INT 21H
LOOP L1
MOV AX, 4CH ; RETURN TO MS-DOS
INT 21H
The service 01
of INT 21H
takes a character input from the user. which in this case is a number, on each iteration the loop shift 1 to the left. Unfortunately this does not happen.