Chapter II Register

Source: Internet
Author: User

First, CPU overview

1, a typical CPU by the operators, controllers, registers and other components.

2. The internal bus realizes the connection between each device inside the CPU .

3. The external bus realizes the connection between the CPU and other devices on the motherboard.

Second, the General register

1, 8086CPU are 16 bits can be stored two bytes. Ax. Bx. CX. DX is typically used to store general data, known as general-purpose registers.

2, in order to ensure compatibility, these four general-purpose registers can be split use. For example, Ax: can be divided into Ah, AL.

Three, the word in the Register of storage

1, Bytes: Byte, a byte consisting of 8 bits, can hold 8-bit registers.

2, Word: recorded as Word, a word consists of two bytes, respectively known as the high byte of the word and status byte.

Iv. several assembly instructions

1.

1) in the Mov and add instructions, the number of bits of the two operand should be the same.

2) When the operation exceeds the Register, the high position is omitted. (1 omitted)

Five. 8086 represents a physical address barrier

The 1.8086 registers are 16 bits (64KB) and the external address bus bits are 20 bits (1M).

2. Therefore 8086 in-house with two 16-bit addresses by calculating the physical address of a 20-bit can be synthesized

The computational composition is implemented by the address adder inside the CPU.

3. Concept of paragraph

"segment" is a logical concept introduced in 8086 to address the physical address of a 20-bit with a 16-bit register.

You can use a set of internal CDs (no more than 64KB) as a "segment", where the address is contiguous and the starting physical address is multiple, as needed.

VI, CS and IP

1, CS: Code segment register, for storing the "segment address" of the code snippet

2. IP: instruction Pointer register, which holds the offset address of the instruction that the CPU will read in the code snippet.

3,Cs:ip corresponding to the physical address of the CPU will be read instructions.

4. Modify CS and IP instructions in jmp

1) simultaneously modify CS, IP content:jmp segment address : offset Address

Modify CS with the segment address given in the instruction, offset address to modify IP.

2) modify only the contents of the IP: a valid register injmp

Chapter II Register

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.