Compilation--Second lecture

Source: Internet
Author: User

Central Processor CPU

The microprocessor is abstracted as a register that is accessed by name.

It mainly contains the arithmetic and controller of instruction execution, as well as a variety of registers.

CPU operating mode

1 Real Mode

2 protection mode

3 Virtual 8086 mode

8086/8088 of functional structure

Module one, bus interface unit Biu, mainly responsible for reading instruction and operation number.

Module Two, the implementation unit EU, mainly responsible for instruction decoding and implementation.

Execution period of the instruction:

1. Take instruction

2. Decoding

3, take the operation number

4. Implementation

5. Storage output Operation number

16-bit Registers

The segment register is a dedicated register dedicated to memory addressing. The starting address where the logical segment is stored.

Code segment data segment stack segment extra segment

32-bit Registers

Expanded 2 16-bit segment registers : FS and GS

Data registers

Pointer Register SP/BP

Variable address register Si/di

Instruction Pointer IP

Carry register CF (carry flag) when the addition (subtraction) of the operation, if the highest bit forward has a (borrowing) bit, then cf=1, otherwise cf=0.

0 flag-bit ZF (zero flag) when the operation result is zero zf=1, otherwise zf=0.

The symbol mark bit SF (sign flag) when the highest bit of the result of the operation is 1 o'clock sf=1, otherwise sf=0.

Parity flag bit PF (Parity flag) when the number of "1" in the lower 8 bits of the operation result is even when pf=1, is odd, pf=0

Overflow flag OV (Overflow flag) When the result of the arithmetic operation is outside the range of the signed number, i.e. overflow, of=1, otherwise of=0

Compilation--Second lecture

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.