Reputation: 909
;**********************************
; 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:
error:parser: instruction expected.
This problem has been solved previously but I am not getting it in my context.
Upvotes: 4
Views: 15490
Reputation: 46960
The NASM documents do not name an assembler directive ddw
. I expect that's what the error message is talking about. ddw
is not an "instruction," so it's confused.
Upvotes: 2