当前位置:网站首页>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
边栏推荐
- 7-9 find a small ball with a balance
- Exercise 10-2 recursive factorial sum
- 关于回溯问题中的排列问题的思考(LeetCode46题与47题)
- 如何查询淘宝天猫的宝贝类目
- Example analysis of QT learning 18 login dialog box
- Learn to punch in today
- Exercise 10-8 recursive implementation of sequential output of integers
- 7-22 tortoise and rabbit race (result oriented)
- 战略、战术(和 OKR)
- Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)
猜你喜欢
编程语言:类型系统的本质
Print. JS -- web page file printing
泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
JVM runtime data area
JS input number and standard digit number are compared. The problem of adding 0 to 0
Leetcode(4)——寻找两个正序数组的中位数
Exercise 6-1 classify and count the number of characters
7-18 finding the single root of polynomial by dichotomy
Exercise 6-2 using functions to sum special A-string sequences
Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
随机推荐
x86汇编语言-从实模式到保护模式 笔记
How Facebook moves instagram from AWS to its own server
simpleParallax. JS (create poor visual effects for website pictures)
LNMP环境mail函数不能发送邮件解决
JS shift operators (< <,> > and > > >)
JVM class loading
QT learning 25 layout manager (4)
牛客网:过河卒
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
Thread.sleep和TimeUnit.SECONDS.sleep的区别
7-24 reduction of the simplest fraction (rolling Division)
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
7-9 find a small ball with a balance
Current situation, analysis and prediction of information and innovation industry
MongoDB数据库入门的常用命令
编程语言:类型系统的本质
Exercise 10-1 calculate the sum of 1 to n using recursive functions
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
Common plug-ins for vite project development