Compilation study (ii)--8086CPU

Source: Internet
Author: User

One, 8086CPU 1, microprocessor

(1) Micro-control machine: Also known as single-chip microcomputer

(2) DSP chip: Digital signal processing chip

(3) Embedded microprocessor

(4) Universal microprocessor: PC Station, workstation, server using the processor

2. Internal structure:

(1) Bus interface Unit (BIU):

A. Responsible for data transmission and instruction Reading

B, the execution unit to the instruction machine code decoding

C, coordinated control of the components in the chip

(2) Execution Unit (EU): Perform operation

3, 8086 registers

(1) General Register:

A, 8 general-purpose registers: AH,AL,BH,BL,CH,CL,DH,DL

B, 2 variable address registers: Si,di

C, 2 pointer registers: BP,SP

These four registers can only be operated in 16-bit, primarily for staging data or addresses

(2) Segment Register:

Segment address for primary storage-based segment management

(3) Control register:

The instruction pointer IP is actually a 16-bit plus counter that always points to the address of the next command to execute.

4. Flag register in Control register

(1) Control mark:

DF: Direction sign

IF: Interrupt Flag

TF: Single-step flag or trap flag

(2) Condition Mark position

PF: Parity flag: The lower 8 bits of the calculated result, if the number of 1 is an even number, then pf=1, otherwise pf=0

ZF: 0 Flag bit: Calculation result is 0,zf=1, otherwise zf=0

AF: Auxiliary carry/Borrow flag bit: calculation result D3 to D4 carry or borrow, then af=1, otherwise af=0.

CF: Carry/Borrow flag bit: the highest bit of the calculated result forward bit or borrow, then cf=1, otherwise cf=0

SF: Symbol flag bit: Calculate the demerit is negative, sf=1, otherwise sf=0, is actually the highest bit of the computer (complement)

Of: Overflow flag bit: The calculation result exceeds the symbol number of the complement number of expression range: of=1, otherwise of=0. Used to calculate addition and subtraction errors.

(3) method of judging the mark of the:

Subtraction is the same.

Compilation study (ii)--8086CPU

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.