INCBIN

You probably have some graphics you’d like to include. Use INCBIN to include a raw binary file as it is. If the file isn’t found in the current directory the include-path list will be searched.

INCBIN    "titlepic.bin"
INCBIN    "sprites\\hero.bin"

You can also include only part of a file with INCBIN. The example below includes 256 bytes from data.bin starting from position 78.

INCBIN    "data.bin",78,256

See also:


Last updated 21 June 1997 by Carsten Sorensen