I need to prompt to user a msg that tells him to write a number , then I store this number and do some operation on it
After searching in INT 21h I found this :
INT 21h / AH=1 - read character from standard input, with echo, result is stored in AL.
if there is no character in the keyboard buffer, the function waits until any key is pressed.
example:
mov ah, 1
int 21h
The main problem that this only reads one character and represent it as ASCII
so If I need to write the number “357”
I will read it as 3 , 5 , 7
and this is not my goal .
any ideas ?
When you managed to get the user input, put the its pointer in ESI (ESI = address to the string)