繁体   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