Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 x86 汇编语言的 programmig,我发现了一个问题。我调用 C 函数getch从标准输入获取单个字符。但问题是返回值存储在寄存器 EAX 中。我想知道,如何获得一个角色。不是 4 字节值。谢谢。
getch
EAX您可以使用其中的一个字节部分AL
EAX
AL
mov [MEMORY], al
AL是AX寄存器的低字节。您也可以使用AH- 高字节AX
AX
AH