incbin

Tells the assembler to include the binary content of the specified file.

  . incbin filename[,start[,length]]

  
Parameters

filename

Name of a binary file.

start

Offset from start of file at which to begin including data.

length

Number of bytes of data to include.

Remarks

This directive is useful when you wish to include arbitrary data directly in the program being assembled, e.g.

logoPicture: .incbin "CompanyLogo.jpg"