引导加载程序磁盘缓冲区
最近我发现了一些简单的引导加载程序的源代码。以下是简单的单阶段引导加载程序
BITS 16
org 0x7c00
start:
mov ax,07c0h
add ax, 288
mov ss,ax
mov sp,4096
...
...
来自MikeOS
内存布局保留了 4kb 磁盘缓冲区。
就像这样:
从 0x7c00 开始
|MBR(512)........|4kb disk buffer............|4kb stack .....|
我不明白的是为什么需要磁盘缓冲区?有人可以帮助我吗? 抱歉我的愚蠢问题,但我用谷歌搜索了很长时间,但无法得到我想要的东西。
Recently I found some simple source code of a bootloader.The following is the simple one stage boot loader
BITS 16
org 0x7c00
start:
mov ax,07c0h
add ax, 288
mov ss,ax
mov sp,4096
...
...
from MikeOS
the memory layout reserve a 4kb disk buffer.
just like this:
start from 0x7c00
|MBR(512)........|4kb disk buffer............|4kb stack .....|
what I don't understand is that why a disk buffer is needed? Can somebody helps me.
sorry for my stupid question, but I google for a long time and can not get what I want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的答案是,磁盘缓冲区用于首先加载根目录,然后加载文件分配表,以便从根目录加载指定文件。
令人高兴的答案是,最新的代码可以在 MikeOS 网站上找到。
The simple answer is that the disk buffer is used to load first the root directory and then the File Allocation Table in order to load the named file from the root directory.
The happy answer is that the latest code is available at the MikeOS website.