FAQ  •  Register  •  Login

#INCBIN not working in 1.4 and 1.3

<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Wed May 14, 2014 8:33 pm

#INCBIN not working in 1.4 and 1.3

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
#incbin "file.bin"
end 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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun Jun 01, 2014 6:43 am

Re: #INCBIN not working in 1.4 and 1.3

Preprocessor directives start with # symbol. Incbin is not a preprocessor directive, but an assembler one. So don't use the # prefix. Example:
  Code:
    asm
    incbin "file.bin"
    end asm
<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Sun Jun 01, 2014 9:52 am

Re: #INCBIN not working in 1.4 and 1.3

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?
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Jun 07, 2014 10:55 pm

Re: #INCBIN not working in 1.4 and 1.3

programandala.net wrote:
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?

You are right!! :(
It's a documentation mistake! INCBIN is an ASM directive (like DEFB)

Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO