【发布时间】:2020-06-18 09:04:46
【问题描述】:
我无法指向地址并在我的情况下写入一个字节大小的变量。这给了我错误“错误:无效的有效地址”:
mov byte[AX], byte 0x0
经过一些尝试和错误后,我测试了相同但使用 EAX。这编译得很好:
mov byte[EAX], byte 0x0
我在这里错过了什么?
【问题讨论】:
-
相关:Why don't x86 16-bit addressing modes have a scale factor, while the 32-bit version has it? 解释了为什么 16 位寻址模式受到更多限制。
标签: assembly x86 nasm x86-16 addressing-mode