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

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.

主站蜘蛛池模板: 大丰市| 汉寿县| 海晏县| 舟山市| 襄汾县| 青铜峡市| 西和县| 泰兴市| 武川县| 卓尼县| 泰兴市| 南江县| 和平区| 会理县| 淮滨县| 行唐县| 扬州市| 云龙县| 仪征市| 南昌县| 莱西市| 文成县| 延吉市| 吉水县| 湘乡市| 新河县| 嵩明县| 勃利县| 南开区| 石棉县| 武义县| 渝中区| 大关县| 华池县| 逊克县| 永清县| 呼伦贝尔市| 民和| 福贡县| 永胜县| 巫溪县|