#INCBIN not working in 1.4 and 1.3 - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: #INCBIN not working in 1.4 and 1.3 (/showthread.php?tid=589) |
#INCBIN not working in 1.4 and 1.3 - programandala.net - 05-14-2014 Hi all, I'm back with some ZX BASIC projects. The Z80 #INCBIN doesn't work for me. I never tried it before, but I think it's implemented (it's mentioned in the Syntax page of the wiki, and in a post by Boriel about graphics (2011)). Code: asm I use 1.4, but a symbolic link lets me switch to 1.3. Both versions show the same error: "invalid directive #incbin". Is it a bug? Thank you. Re: #INCBIN not working in 1.4 and 1.3 - boriel - 06-01-2014 Preprocessor directives start with # symbol. Incbin is not a preprocessor directive, but an assembler one. So don't use the # prefix. Example: Code: asm Re: #INCBIN not working in 1.4 and 1.3 - programandala.net - 06-01-2014 boriel Wrote:Preprocessor directives start with # symbol. Incbin is not a preprocessor directive, but an assembler one. So don't use the # prefix. I'll try it. Thank you. I'm afraid I'm a victim of "counterdocumentation"... Both links I've showed above (the current wiki and a post of yours) say "#incbin". Maybe the syntax changed some time ago? Re: #INCBIN not working in 1.4 and 1.3 - boriel - 06-07-2014 programandala.net Wrote:You are right!!boriel Wrote:Preprocessor directives start with # symbol. Incbin is not a preprocessor directive, but an assembler one. So don't use the # prefix. It's a documentation mistake! INCBIN is an ASM directive (like DEFB) |