Reputation: 31
I am having an issue with this piece of code:
loop :
jmp loop
times 510 -( $ - $$ ) db 0
dw 0 xaa55
It is giving me an error saying:
boot.asm:6: error: comma expected after operand 1
I don't know what is causing this. I just started trying os developing, so don't expect me to know that much.
Upvotes: 0
Views: 448
Reputation: 581
You need to remove the space after between the 0
and the x
on line 6.
loop :
jmp loop
times 510 -( $ - $$ ) db 0
dw 0xaa55
0x
indicates a hexadecimal number, and so it cannot be split up with spaces.
Upvotes: 1