*** blob2asm68k ***
Simple tool to turn a blob of data into 68000 asm. Usage is:
blob2asm68k «infile» «outfile» «label» «labelsize»
The «infile» is the file to convert and «outfile» is where the 68000 asm code
will be output. Two labels will be generated: one pointing to the beginning of
the blob, and one indicating its size in bytes. An even directive is also added
to ensure proper alignment.
For example:
blob2asm68k z80.blob sonablob.68k Sona_Blob Sona_BlobSize
This takes z80.blob and makes the file sonablob.68k out of it (which you can
include as-is). The generated file will look something like this:
Sona_Blob:
dc.b $F3,$31,$C0,$1F,$C3,$28,$0D,$00,$F7,$CD,$15,$0E,$F7,$C9,$00,$00
dc.b $F7,$CD,$15,$0E,$F7,$C9,$00,$00,$78,$E6,$0F,$5F,$16,$13,$1A,$D6
dc.b $00,$28,$02,$3E,$FF,$ED,$4F,$C9,$37,$CB,$14,$17,$CB,$0C,$C9,$00
...
Sona_BlobSize: equ *-Sona_Blob
even