当前位置:网站首页>X86 assembly language - Notes from real mode to protected mode
X86 assembly language - Notes from real mode to protected mode
2022-07-03 14:22:00 【InfoQ】
Segment address : offset

16 Bit register
- AX accumulator (Accumulator)
- BX Base register (Base Address Register)
- CX Counter (Counter)
- DX data (Data) register
- SI Source index register (Source Index)
- DI Target index register (Destination Index)
- BP Base pointer register (Base Pointer)
- SP Stack register (Stack Pointer)
- Code segment (Code Segment,CS)
- Data segment (Data Segment,DS)
- Additional segment (Extra Segment, ES)
- Stack segment (Stack Segment,SS)
- IP: Instruction pointer (Instruction Pointer)

- Arithmetic logic unit (arithmetic and logic unit) ALU
Professional terms
- Dynamic random access memory (Dynamic Random Access Memory,DRAM)
- read-only memory (Read Only Memory,ROM)
- floppy disk (Floppy Disk)
- Hard disk (Hard Disk,HDD)
- “ turn / minute ”(Round Per Minute,RPM)
- Magnetic track (Track)
- cylinder (Cylinder)
- A sector (Sector)
- Master boot record (Master boot record, Abbreviation for MBR)
- Main boot sector : The first sector is 0 Noodles 0 Avenue 1 A sector , Or rather, 0 head 0 column 1 A sector
- virtual machine (Virtual Machine,VM)
Main guide fan
- Main boot sector (Main Boot Sector,MBR)
- Display memory (Video RAM:VRAM), abbreviationmemory
Computer startup

- Electrify
- Read ROM Inside BIOS, Used to check the hardware
- Hardware check passed
- BIOS According to the specified order , Check the first sector of the boot device ( Master boot record ), Load in memory address 0x7C00
- The master boot record gives the operation right to the operating system
0x0000~0x7FFF
0x0000~0x03FF
0x0400~0x7FFF
0x7FFF - 512 - 512 + 1 = 0x7C00
Display text on screen


Initialize segment register
label
Pseudo instruction (pseudo Instruction)
- DB: Declaration byte (Declare Byte)
- DW(Declare Word) Used to declare word data
- DD(Declare Double Word) Used to declare double words ( Two words ) data
- DQ(Declare Quad Word) Used to declare quadword data
8086 Addressing mode of processor
- Register addressing
- Address immediately
- Memory addressing
- Direct addressing
- Base addressing
- BX
- BP
- Addressing
- SI
- DI
- Base addressing
Access and control of hard disk and graphics card
equ


in
out
边栏推荐
- 好看、好用、强大的手写笔记软件综合评测:Notability、GoodNotes、MarginNote、随手写、Notes Writers、CollaNote、CollaNote、Prodrafts、Noteshelf、FlowUs、OneNote、苹果备忘录
- Exercise 10-1 judge the three digits that meet the conditions
- Leetcode(4)——尋找兩個正序數組的中比特數
- fpga阻塞赋值和非阻塞赋值
- JVM垃圾回收机
- 常见问题之PHP——ldap_add(): Add: Undefined attribute type in
- 7-22 tortoise and rabbit race (result oriented)
- JVM object lifecycle
- 适用于XP的DDK
- PCB中常用快捷键
猜你喜欢
Exercise 10-8 recursive implementation of sequential output of integers
Print. JS -- web page file printing
QT learning 19 standard dialog box in QT (top)
Exercise 6-6 use a function to output an integer in reverse order
玖逸云黑免费无加密版本源码
Understanding of closures
Current situation, analysis and prediction of information and innovation industry
JS first summary
7-10 calculate salary
Redis:字符串類型數據的操作命令
随机推荐
7-11 calculation of residential water charges by sections
天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
Common mixins
Why is this error reported when modifying records in the database
Invalid Z-index problem
The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log
Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值
7-8 overspeed judgment
Duet date picker (time plug-in that can manually enter the date)
Why are grass-roots colleges and universities with "soil and poverty" called "Northeast small Tsinghua"?
Preliminary summary of structure
QT learning 19 standard dialog box in QT (top)
愉悦资本新双币基金近40亿元完成首次关账
PCB中常用快捷键
[clean up the extraordinary image of Disk C]
Exercise 8-7 string sorting
7-23 currency conversion (using array conversion)
7-10 calculate salary
String substitution
Reflection -- basic usage