;**********************************
; 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
我已经在Windows 7上使用nasm编写了一个简单的启动程序,但是我遇到了一个错误:
error:parser: instruction expected.
这个问题之前已经解决过,但是我在我的情境中没有得到它。
ddw
。 - Gene