gpt4 book ai didi

boot - 启动后寄存器的状态

转载 作者:行者123 更新时间:2023-12-02 20:30:49 27 4
gpt4 key购买 nike

我正在 x86 机器上开发引导加载程序。

当BIOS将MBR的内容复制到0x7c00并跳转到该地址时,寄存器的内容有标准的含义吗?寄存器有标准值吗?

我知道段寄存器通常设置为 0,但有时会设置为 0x7c0。其他硬件寄存器怎么样?

最佳答案

This early execution environment is highly implementation defined, meaning the implementation of your particular BIOS. Never make any assumptions on the contents of registers. They might be initialized to 0, but they might contain a random value just as well.

来自 OS dev Wiki ,这是我在玩我的玩具操作系统时获取信息的地方

关于boot - 启动后寄存器的状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20336/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com