Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create and draw graphics
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:
INCBIN "factory.BIN"
End Asm
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

Messages In This Thread

Forum Jump:

Users browsing this thread: 2 Guest(s)