当前位置:网站首页>x86汇编语言-从实模式到保护模式 笔记
x86汇编语言-从实模式到保护模式 笔记
2022-07-03 13:43:00 【InfoQ】
段地址:偏移地址

16 位寄存器
- AX 累加器(Accumulator)
- BX 基址寄存器(Base Address Register)
- CX 计数器(Counter)
- DX 数据(Data)寄存器
- SI 源索引寄存器(Source Index)
- DI 目标索引寄存器(Destination Index)
- BP 基址指针寄存器 (Base Pointer)
- SP 栈寄存器 (Stack Pointer)
- 代码段(Code Segment,CS)
- 数据段(Data Segment,DS)
- 附加段(Extra Segment, ES)
- 栈段 (Stack Segment,SS)
- IP:指令指针(Instruction Pointer)

- 算术逻辑单元 (arithmetic and logic unit) ALU
专业名词
- 动态随机访问存储器(Dynamic Random Access Memory,DRAM)
- 只读存储器(Read Only Memory,ROM)
- 软盘(Floppy Disk)
- 硬盘(Hard Disk,HDD)
- “转/分钟”(Round Per Minute,RPM)
- 磁道(Track)
- 柱面(Cylinder)
- 扇区(Sector)
- 主引导记录(Master boot record,缩写为MBR)
- 主引导扇区: 第一个扇区是0面0道1扇区,或者说是0头0柱1扇区
- 虚拟机(Virtual Machine,VM)
主引导扇
- 主引导扇区(Main Boot Sector,MBR)
- 显示存储器(Video RAM:VRAM),简称显存
计算机启动

- 通电
- 读取ROM里面的BIOS,用来检查硬件
- 硬件检查通过
- BIOS根据指定的顺序,检查引导设备的第一个扇区(即主引导记录),加载在内存地址 0x7C00
- 主引导记录把操作权交给操作系统
0x0000~0x7FFF0x0000~0x03FF0x0400~0x7FFF0x7FFF - 512 - 512 + 1 = 0x7C00
在屏幕上显示文字


初始化段寄存器
标号
伪指令(pseudo Instruction)
- DB: 声明字节(Declare Byte)
- DW(Declare Word)用于声明字数据
- DD(Declare Double Word)用于声明双字(两个字)数据
- DQ(Declare Quad Word)用于声明四字数据
8086处理器的寻址方式
- 寄存器寻址
- 立即寻址
- 内存寻址
- 直接寻址
- 基址寻址
- BX
- BP
- 变址寻址
- SI
- DI
- 基址变址寻址
硬盘和显卡的访问和控制
equ


in
out
边栏推荐
- JS shift operators (< <,> > and > > >)
- 核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)
- 天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
- 中国PETG市场预测及战略研究报告(2022版)
- [acnoi2022] guess numbers
- [combinatorics] permutation and combination (examples of combinatorial number of multiple sets | three counting models | selection problem | combinatorial problem of multiple sets | nonnegative intege
- 6-9 statistics of single digits (15 points)
- 玖逸云黑免费无加密版本源码
- Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
- JVM object lifecycle
猜你喜欢

Spring cup eight school league

Fabric. JS document

Solve MySQL 1045 access denied for user 'root' @ 'localhost' (using password: yes)

Exercise 10-3 recursive implementation of exponential functions

Leetcode(4)——尋找兩個正序數組的中比特數

Exercise 9-3 plane vector addition

QT learning 20 standard dialog box in QT (middle)

Rasp implementation of PHP

FPGA test method takes mentor tool as an example

7-8 overspeed judgment
随机推荐
叶酸修饰的金属-有机骨架(ZIF-8)载黄芩苷|金属有机骨架复合磁性材料([email protected])|制备路线
7-7 12-24 hour system
金属有机骨架材料ZIF-8包载姜黄素([email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂
Qt学习24 布局管理器(三)
八大排序
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
虽然不一定最优秀,但一定是最努力的!
TS code automatically generates JS
Current situation, analysis and prediction of information and innovation industry
天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
[acnoi2022] guess numbers
Fabric. JS document
UiO-66-COOH装载苯达莫司汀|羟基磷灰石( HA) 包裹MIL-53(Fe)纳米粒子|装载黄芩苷锰基金属有机骨架材料
Qt学习19 Qt 中的标准对话框(上)
Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
7-11 calculation of residential water charges by sections
Metal organic framework (MOFs) antitumor drug carrier | pcn-223 loaded with metronidazole | uio-66 loaded with ciprofloxacin hydrochloride(
Exercise 10-8 recursive implementation of sequential output of integers
QT learning 23 layout manager (II)
QT learning 22 layout manager (I)