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.
我的问题是当我只能使用 16 位寄存器时,如何向双字变量的高位或低位字写入或读取某物。
您读取/写入内存中的适当位置。低位字是 at [address],而高位字是 at [address+2]。
[address]
[address+2]
例如,如果SI在内存中保存双字的地址,那么这会将低位字读入AX并将高位字读入DX:
SI
AX
DX
mov ax, [si] mov dx, [si+2]