![]() |
|
#INCBIN not working in 1.4 and 1.3 - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://forum.boriel.com/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 - 2014-05-14 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: asmI 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 - 2014-06-01 Preprocessor directives start with # symbol. Incbin is not a preprocessor directive, but an assembler one. So don't use the # prefix. Example: Code: asmRe: #INCBIN not working in 1.4 and 1.3 - programandala.net - 2014-06-01 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 - 2014-06-07 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) |