Chapter II Summary

Source: Internet
Author: User

First, the CPU

A typical CPU consists of an operator, a controller, a register, and other devices.

Arithmetic: Information processing

Register: Information Store

Controller: Controls the operation of various devices

Second, the General register

8086CPU registers are 16-bit and can hold two bytes

AX, BX, CX, DX are called general-purpose registers

To be compatible with earlier CPU operations, these 4 registers can be split into two 8-bit registers for individual use

For example, Ax can be divided into Al and Ah registers, which are 8-bit registers that can be used independently

Three, the word storage

Bytes: One byte consists of 8 bits

Word: A word consisting of two bytes

High 8 bits of the word → high 8-bit registers stored in the Universal register

Low 8 bits of the word → low 8-bit registers stored in the general register

IV. Assembly directives

The number of bits of two manipulated objects should be consistent during data transfer and operation

Five, 8086CPU how to give a physical address

Base Address *16+ Offset address = Physical Address

VI, CS and IP

CS: Code Snippet Register

IP: Instruction Pointer register

The CPU Cs:ip the content pointed to as an instruction execution

IP is used to hold the offset address of the instruction that the CPU will read in the code snippet

Vii. jmp directives

At the same time, modify CS, IP content:

JMP segment Address: offset address

To modify only the contents of the IP:

A valid register in JMP

Chapter II Summary

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.