This is a useful utility that reads a file (binary or otherwise) and produces a formatted output file ready to be included as an 'inc' file in your assembler source.
How to use....
Usage: incbuilder sourcefile destfile label
This software is free. NO WARRANTY
use at your own risk
sourcefile can be binary, text, whatever...
If 'label' is omitted then a default label is created as the
source filename before the dot
If label is 'nolab' then no label for the table is created.
eg. The command line "incbuilder test.txt outfile.inc table_1" created a file
with the following contents....
; sourcefile "test.txt"
; processed on: Thu Feb 14 13:42:02 2013
; Read 44 bytes from sourcefile "test.txt"
This is useful for making include files for tables of data. Could be sine wave lookups, embedded web pages, font tables... etc etc
There seems to be no easy way to embed a binary file into assembler source but this gets round the problem.
Using AS6, I run it as part of the pre-build for my solution so that the created file is always up to date with any changes made to the sourcefile material.
I'm using it to embed web pages and other items.
Hope you find it useful.