X 在 EAX、EBX、ECX 中是什么意思……在汇编中? [英] What does X mean in EAX,EBX,ECX ... in assembly?
问题描述
Google 不显示结果,
Google doesn't show the result,
有人知道吗?
推荐答案
X 表示 pair,至少可以追溯到 8080.它有 8 位寄存器 B、C、D、E、H、L(以及其他)也可以成对使用(BC、DE 和 HL).BC 和 DE 对主要用于 16 位算术;HL 对通常持有一个内存地址.X 用于 pair 的一些示例:
The X means pair, and goes back to at least the 8080. It had 8-bit registers B,C,D,E,H,L (among others) which could also be used in pairs (BC, DE and HL). The BC and DE pairs were used mostly for 16-bit arithmetic; the HL pair generally held a memory address. Some examples of the usage of X for pair:
LXI D,12ABH ; "load pair immediate"
DCX B ; "decrement pair"
STAX D ; "store A (indirect) at pair"
快进到 8086.它有寄存器 AL、AH、BL、BH、CL、CH、DL、DH,与 8080 类似,可以成对使用:AX、BX、CX、DX.
Fast forward to the 8086. It has registers AL,AH,BL,BH,CL,CH,DL,DH, which, similarly to the 8080, can be used in pairs: AX, BX, CX, DX.
正如其他人指出的那样,32 位寄存器名称中的 E 表示扩展.
As others have pointed out, the E in the 32-bit register names means extended.
这篇关于X 在 EAX、EBX、ECX 中是什么意思……在汇编中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!