官术网_书友最值得收藏!

General purpose registers

Depending on the mode of the operation (protected or long), there are 8 to 16 available general purpose registers in modern Intel processors. Each register is divided into subregisters, allowing access to data with a bit width lower than the width of the register.

The following table shows general purpose registers (further referred to as GPR):

 

Table 1: x86/x86_64 registers
All R* registers are only available in the long mode. Registers SIL, DIL, BPL, and SPL are only available in the long mode. Registers AH, BH, CH, and DH cannot be used in instructions that are not valid outside the long mode.

For convenience, we will refer to the registers by their 32-bit names (such as EAX, EBX, and so on) when we do not need to explicitly refer to a register of a certain bit width. The preceding table shows all general purpose registers available on the Intel platform. Some of them are only available in the long mode (all 64-bit registers, R* registers, and a few of the 8-bit registers) and certain combinations are not allowed. However, despite the fact that we can use those registers for any purpose, some of them do have a special meaning in certain circumstances.

主站蜘蛛池模板: 芷江| 北宁市| 额济纳旗| 肇州县| 武义县| 壤塘县| 万全县| 大渡口区| 府谷县| 嫩江县| 济源市| 江西省| 淮北市| 阿尔山市| 台前县| 博客| 封丘县| 定兴县| 文登市| 濮阳县| 会宁县| 绥化市| 镇巴县| 沭阳县| 永平县| 贵溪市| 象州县| 正定县| 阿拉善盟| 枣阳市| 子洲县| 精河县| 根河市| 河津市| 浑源县| 临猗县| 蒙自县| 神木县| 林芝县| 曲麻莱县| 洞口县|