China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 05:13
中国DOS联盟论坛 » 网络日志(Blog) » [plp626]Assembly Language Learning View 3,352 Replies 0
Original Poster Posted 2008-03-18 22:57 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
---------------------Welcome to patronize, please do not post water
Basics
A computer is organically composed of CPU, memory, motherboard, and other components. The motherboard is an organic carrier of the bus, interface cards, CPU, memory, and various components. The CPU transmits information (in binary form) to and from the interface cards of external components through the bus. The access and control of the interface cards by the CPU indirectly controls the corresponding components. The binary sequences mapped by all external components and memory constitute the memory space---logical memory. Different computer systems have different allocation situations of the memory address space. The lower end is RAM, the middle section is the video memory address space, and the upper end is various ROM address spaces.
Instructions and data are conceptual in application. In memory or on disk, there is no difference between instructions and data; they are all binary information, only interpreted differently in different contexts.
The memory is divided into several memory cells. 8 binary bits (bit) form 1 memory cell (byte). The memory numbers all memory cells sequentially starting from 0.
The wires connecting the CPU and other chips are generally called buses (external). According to the different information transmitted, buses are divided into address buses, control buses, and data buses. Among them, only the data bus transmits information bidirectionally.
Address bus: A CPU with N address buses can address 2^N memory cells. Its address bus width is N.
Control bus: A CPU with N control buses means that the CPU provides 2^N kinds of controls for external components.
Data bus: A CPU with N data buses transmits N binary bits of information at a time. For example, the data bus width of the 8086 CPU is 16, and it can transmit 16 binary bits = 2B at a time.
8 bit = 1 B
2^10 B = 1 KB
2^20 B = 1 MB
2^30 B = 1 GB
2^40 B = 1 TB
CPU Working Principle (8086)
The CPU is composed of components such as an arithmetic unit (information processing), a controller (controlling the work of various components), and registers (storage), connected by internal buses for information (binary form) communication.
Different CPUs have different numbers of registers. The 8086 CPU has 14 registers: AX, BX, CX, DX, SI, DI, SP, BP, IP, CS, SS, DS, ES, PSW. The address bus width is 20 (1M addressing capability), and the data bus width is 16 (16-bit word length).
AX, BX, CX, and DX are used to store general data and are called general-purpose registers.

[ Last edited by plp626 on 2008-5-15 at 08:35 AM ]
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Forum Jump: