How CPUs work
The CPU is composed of devices, controllers, registers, etc., which are connected by the internal bus
2.1 General-Purpose registers
8086 has 14 registers (16-bit): AX,BX,CX,DX,SI,DI,SP,BP,IP,CS,SS,DS,ES,PSW
AX,BX,CX,DX is called a general-purpose register to hold general data, and to ensure backwards compatibility, the universal register can be divided into two independent 8-bit registers.
Exa
3.1 Storage of in-memory words
Font data with byte type data (the former is a byte, two 16-bit number)
Any two contiguous memory units, N and n+1, can be viewed as two memory units or as high-order byte units and low-bit byte units in a word cell with n
3.2DS and Address
DS Register: The segment address that is typically used to store the data to be accessed
MOV bx,1000h
MOV ds,bx
MOV al,[0]
The above three instructions will be in 10000H (1000:0) of
The following sections only apply to P6 and the updated Processor family.
The memory range register (Note: plural) provides a mechanism for associating the memory type (see section 11.3) with the physical address range in the system memory. They allow processors to optimize operations for Different Storage types, such as Ram, Rom, frame cache memory, and memory ing I/O devices. They also simplify system hardware design by eliminating memory control p
Recently started Orangepi Zero piece, the program needs to use the board's own LED lights, on-line a check, have to say that OPI support and Raspberry Pi can not compare. Oneself groped for a moment, realizes the simple Gpio control method, the author's Zero installs is the Armbian system, uses the python to write a read and write registers the simple module, through this module, can realize to the Gpio control.The author has previously used STM32 MCU, this kind of MCU, if you want to achieve th
Drive develops reading notes. 0.04 Linux 2.6 Platform device register platform equipment registration 1/2 Total 2 articlesDocumentation/driver-model/platform.txtDevice Enumeration the~~~~~~~~~~~~~~~~~~as a rule, platform specific (and often board-specific) Setup code'll, register platform devices: - the intPlatform_device_register (structPlatform_device *Pdev); the the intPlatform_add_dev
CPU OverviewA typical CPU consists of an operator, a controller, a register, and other devices that are connected by an internal bus.The internal bus realizes the connection between each device inside the CPU, and the external bus realizes the connection between the CPU and other devices on the motherboard.8086CPU has 14 registers their names are: AX, BX, CX, DX, SI, DI, SP, BP, IP, CS, SS, DS, ES, PSW.2.1 General-Purpose registers8086CPU all register
compiler will optimize the code, in order to increase the speed of access to variables, some variables in the register (to know that the controller, the operator and the Register is the three main components of the CPU) access, rather than in memory access, That way the CPU takes things in its own house much faster than taking things from memory. Give me a little chestnut:int i = 5;int a = i;......int b =
The variables in C language are divided into four categories, respectively
1.auto Automatic variable
2.static Static Storage allocation variable (also divided into internal static and external static)
3.extern whole variable (for external variable description)
4.register register variable (allocated in hardware registers)
Four categories, all variables must be described first (defined), after use.
The foll
Flag RegisterFlag is not the same as other registers, and other registers are used to hold data, all of which have a meaning for the entire register.The flag register is a bitwise function, which means that each of its bits has a special meaning and records specific information.The structure of the flag register for 8086CPU:ZF logoThe 6th digit of flag is the ZF, 0 flag bit (zero flag).It records whether th
How to register a keyboard device in Linux
[Implementation of the mouse driver in Linux]Input_init () =>=>Class_register ( input_class); registers the input classInput_proc_init (); create directories and files under procRegister_chrdev (input_major, "input", input_fops); register the driver to the cdev_map to be driven.
Drivers/input/keyboard/pxa3xx_keypad.c is our Keyboard device,Pxa3xx_keypad_probe =>Re
1. There are two basic operations on the stack: Inbound and Outbound
In the stack, a new element is placed at the top of the stack. In the stack, an element is taken from the top of the stack;
2. The elements at the top of the stack always last in the stack and first out of the stack. This operation rule of the stack is called LIFO (last in first out) and then in first out.
3. The 8086cpu provides the inbound and outbound commands. The two most basic commands are push (inbound) and POP (outbou
CPU
The CPU is composed of memory devices, controllers, registers, and other devices. The memory device processes information, stores information in registers, controls various devices for operation, and connects various devices through the internal bus, transfer Data between them. Programmers can control the CPU by changing the content in various registers.
General registers
All registers of the 8086cpu are 16-bit. General registers include ax, BX, CX, and DX. These four registers can be divi
Memory in the CPU, generally refers to hard disks, u disk, etc. can be cut off power after the equipment to save data, capacity is generally relatively large, the disadvantage is that the reading and writing speed is very slow, ordinary mechanical hard disk read and write speed is generally 50mb/s around. Memory and register is to solve the memory read and write slow production of multi-level storage mechanism, since the 1950s, the core memory has onc
Recently began to look at "Orange's: An operating system implementation", but because do not understand the assembly, look at the first boot sector code when there is confusion:1. In order to copy the values in CS to DS and ES, we first need to copy the values from CS to ax, why can't I copy them directly?2. mov ax, CS; mov ds, ax; mov es, ax; what is the meaning of the sentence that initializes the segment register?1 org 07c00h2 mov ax, CS3
3.1 In-memory wordsIn-memory words are 16 bits, stored in 2 memory unitsAddress large storage high (8 digits to the left of the word), the address is small low (8 digits to the right of the word)Word cell: A memory unit that holds 1 glyph data, consisting of 2 memory units, a total of 16 bits3.2 DSThe name of a register that is used to place the segment address of the data segmentThe MOV instruction can transfer the data to
SS, SP, BP three registers
SS: The segment address of the storage stack;SP: Stack registers SP (stack pointer) The offset address of the stack;
BP: Cardinal Pointer register BP (base pointer) is a register, its use is a little special, and the stack pointer SP joint use, as SP calibration used, only in the search stack of data and the use of individual addressing methods to useFor example, a lot of data or
Interrupt registers, Timer/counter related registers themselves or related bits are used to initialize, the content of the interrupt function is mainly to reflect the operation after the interruption (write code within the interrupt function).1. Interrupt Allow register IE
Figure 1. Interrupt Register IEThe interrupt register is used to set the opening and
8086 Register Group
Data Registers
These registers can be accessed in Word (16-bit) or byte (8-bit) unitsEach register in a data register can be divided into 2 8-bit registers. Ah, AL,BH, bl,ch, CL,DH, DL, respectively. H represents a high-byte (high 8-bit) register, and L represents a low-byte (low 8-bit)
Tags: paging share blog read-only HDD rar main frequency Write Ora1. The register is the component part of the central processing Unit. Registers are high-speed storage parts with limited storage capacity that can be used to hold instructions, data and addresses. In the control unit of the central processor, the registers included are the instruction register (IR) and the program counter (PC). in the arithm
Variables in the C language can have their own properties
You can add the "Properties" keyword when you define a variable
The "Properties" keyword indicates the unique meaning of a variable
1:auto
Auto is the default property of local variables in C languageThe compiler defaults to all local variables are auto
2:static
The static keyword indicates the variable's "statically" propertyStatic key has the meaning of "scoped qualifier" at the same timeStatic decorated local variables stored in
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.