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)成单个图像。
引导扇区转移到
|
Ilya Loskutov · 无法将单词加载到寄存器中 2 年前 |
Ari157 · x86_64 Linux程序集中的逻辑与实现 2 年前 |
Arya · 汇编语言中的“标签”——操作码 2 年前 |
S1mple · 通过gcc生成64位共享库时的“未定义的主引用” 2 年前 |
R0M2 · 为什么“GCC”忽略汇编代码的-fno pic 2 年前 |
Akagi Akira · 如何在gnu汇编程序中组装MIPS cpu 2 年前 |