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