4
;**********************************
; Boot1.asm
; - A Simple Bootloader
; Operating System Development
;**********************************
org 0x7c00 ;BIOS loaded at 0x7c00
bits 16 ; We are still in 16 bit real mode
Start:
cli ; clear all interrupts
hlt ; halt the system
times 510 - ($-$$) db 0 ;We have to be 512 bytes.Clear rest of bytes with 0
ddw 0xAA55 ;Boot signature
我在NASM写上Windows 7的一个简单的引导装载程序,但我得到了一个错误:NASM错误:解析器指令预期
error:parser: instruction expected.
这个问题以前已经解决,但我不在我的情况下得到它。
我不认为有任何nasm汇编程序指令'ddw'。 – Gene 2014-09-03 04:02:56
我为我的错误而感到抱歉,因为我在这方面被拖了几个小时。 – Linus 2014-09-03 04:22:28
提供完整的错误消息。 – 2014-09-03 05:02:28