簡體   English   中英

NASM 錯誤:需要解析器指令

[英]NASM error: parser instruction expected

 ;**********************************
 ; 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.

這個問題以前已經解決了,但我沒有在我的上下文中得到它。

NASM 文檔沒有命名匯編指令ddw 我希望這就是錯誤消息所談論的內容。 ddw不是“指令”,所以很困惑。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM