Contents | < Browse | Browse >
15C. ways using binary data (INCBIN/CHAR..)


syntax:		INCBIN <filename>

includes a binary file at the exact spot of the statement, should
therefore be separate from the code. Example:

mytab: INCBIN 'df1:data/blabla.bin'


syntax:		LONG <values>,...
		INT <values>,...
		CHAR <values>,...

Allows you to place binary data directly in your program. Functions much
like DC.x in assembly. Note that the CHAR statement also takes strings,
and will always be aligned to an even word-boundary. Example:

mydata: LONG 1,2; CHAR 3,4,'hi folks!',0,1

INCBIN, LONG and in general inline assembly can also be written
between PROCs in an E source (so it doesn't stand in the way of normal
E control flow). Notice however that an E source needs atleast
one PROC before any inline assembly.