![]() |
1
4
见 here for the description of your problem or what I 认为 it is since it's a little hard to tell from the question. It's a good idea when posting questions with "I'm having problems with the syntax" to actually show what the syntax problem 是 -) 见 here
基本上,
However, have you thought about what you're trying to do. If you're creating a flat binary file to load into memory, I don't think you want both the boot sector and kernel in a single file anyway. BIOS希望在7c00:0时将引导扇区作为单个块加载,并且当它在块的开头有内核时,几乎肯定会混淆。我认为您需要做的是创建两个完全独立的平面二进制文件,一个用于引导扇区,另一个用于内核。BIOS将加载引导扇区,然后引导扇区将加载内核。
|
![]() |
2
1
The simple answer is that this cannot be done in NASM.
这个
令人高兴的答案是,这是一种罕见的(可能也是唯一的)情况,在这种情况下,具有不同起始地址的代码需要组合(与NASM)或组装(与FASM)成单个图像。
引导扇区转移到
|
![]() |
Ziv · 避免依赖性使我的VS解决方案中的项目数量激增 9 年前 |
![]() |
Vico · 具有laravel和几个git存储库的代码组织 10 年前 |
![]() |
David Rodrigues · 组织目录中的命名空间和类 10 年前 |