[英]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
I have written a simple boot-loader program in nasm on Windows 7 but I am getting an error:我在 Windows 7 上用 nasm 编写了一个简单的引导加载程序,但出现错误:
error:parser: instruction expected.
This problem has been solved previously but I am not getting it in my context.这个问题以前已经解决了,但我没有在我的上下文中得到它。
The NASM documents do not name an assembler directive ddw
. NASM 文档没有命名汇编指令ddw
。 I expect that's what the error message is talking about.我希望这就是错误消息所谈论的内容。 ddw
is not an "instruction," so it's confused. ddw
不是“指令”,所以很困惑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.