我需要提示用户输入一个数字,然后存储这个数字并对它进行一些操作。在搜索了INT 21h之后,我找到了以下内容:
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
这个问题在于它只读取一个字符并将其表示为ASCII码。因此,如果我需要写数字“357”,我会将其读取为3、5、7。但这不是我的目的。有什么建议吗?