Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
incbin [2019/05/07 13:56] neilsincbin [2019/05/07 13:57] neils
Line 7: Line 7:
 Or - in combination with ''[[DATA|DATA]]'': Or - in combination with ''[[DATA|DATA]]'':
  
- data varname![] = incbin "path/to/binary_file"+  data varname![] = incbin "path/to/binary_file"
  
 The ''INCBIN'' directive instructs the assembler to include a custom binary file. This is useful to include graphics, music or any kind of data - even machine code routines - in your program. The ''INCBIN'' directive instructs the assembler to include a custom binary file. This is useful to include graphics, music or any kind of data - even machine code routines - in your program.