Compilation of small notes

If you use general-purpose registers not how to do?

Memory may be used instead of a general register.

Sequential transmission of data?

CPU registers ---> Cache ---> Memory ---> Memory ---> hard disk.

 

Why is it called general-purpose registers, what the role of each general-purpose registers that? Including 16-bit and 8-bit register, write instructions?
Data register and index register pointer register collectively referred to as general purpose registers.
In addition to these special purpose registers respective predetermined, and they can be used to transmit buffered data may be stored in the arithmetic or logic operation operands and results.

AX word multiplication, division word, word I / O
AL byte multiplication, division byte, byte i / o, decimal arithmetic
AH byte multiplication, division byte
bx memory pointer
counter and loop control operation cx string of
cl shift counter
dx word multiplication, division word, an indirect I / O
SL memory pointer (source pointer string operation)
DI memory pointers (pointer string operation object)
BP memory pointer (access pointer stack)
SP stack pointer


eax 32 bit
ax 16 bit
ah Al 8 and H represents upper 8 bits, eight low L representative of
AX and AL register called an accumulator, the accumulator operation is generally performed by the least possible time spent, in addition there is an accumulator many specialized uses, so the accumulation
of the most common uses of

32 EBX
BX 16
BH. 8 and BL
BX called register address register, which register is only four data registers can be used as a memory pointer

32 ECX
CX 16
CH. 8 and Cl
the CX register called the count register, and when the operation cycle of operation string and use it to control the repeated operation cycles, when the shift operation, CL register
bits stored in the shift

32 EDX
DX 16
DH. 8 and DL
the DX register called a data register, when the row by 32-bit multiply and divide operations, it is stored with a high dividend or remainder of 16, which is also used to store i / o port address


ebp 32
bp 16

esp 32
sp 16

32
di 16

you 32
si 16

 

Guess you like

Origin www.cnblogs.com/guanmen/p/12609884.html
Recommended