General purpose registers

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

General purpose registers

It is a type of temporary memory that can be accessed by the processor during


operations. It can be utilised for input as well as output data.
It can be used for more than one purposes.

AX - Accumulator: It signifies the size of the data bits. It is the most important
register. It involves in every process inlcuding mathematical or logical process.

BX - Base: It stores the starting address of a data.

CX - Count: It stores the value of a variable at every condition.

DX - Destination: It stores the remaining bits of a program. For example, in the


operation of 38bits data in a 32 bit processor, the remaining 6 bits can be stored
in this register.

Where X = size

If architecture is 16bits then Ax, 32bits = EAX, 64bits = RAX

The register are divied into two parts according to the data.
For example, data of 16 bits are divided into 8 bits for each address bus.
AL(lower order) stores the data of 8 bits while the AH(Higher order) stores the
16 to 9 bits if the size is more than 8 bits.

CPU word size/CPU width: It means how many number of bits that can be
processed by CPU. For example, a 32 bit processor is capable of processing
32bits of data.

Flag Registers
In 8086 architecture, it is 16 bit register
9 bits are useful while the remaining are empty.

You might also like