02-16-2011, 11:06 PM
Aggh, after struggling for hour it turned out the compiler was ok. The INCBIN is an assembler macro command, so it's NOT a preprocessor directive, and must not be preceded by # (sharp). The right syntax is:
Anyway, the compiler should tell you that with a more readable error message (which is what I'm currently fixing!). 8)
Try the above and see if it works, please.
On the other hand, I think it would be more coherent to use #incbin "file" instead?? What do you think?
Update: Now the compiler will report "Invalid preprocessor directive" if you use an unknown #directive
Code:
...
Asm
INCBIN "factory.BIN"
End Asm
Try the above and see if it works, please.
On the other hand, I think it would be more coherent to use #incbin "file" instead?? What do you think?
Update: Now the compiler will report "Invalid preprocessor directive" if you use an unknown #directive