mirror of
https://github.com/mgcaret/of816.git
synced 2025-01-15 23:31:01 +00:00
13 lines
314 B
Bash
13 lines
314 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# This script tokenizes FCode via toke and prepends a small header for identification
|
||
|
# by the ROM scanner (currently only implemented for the W65C816SXB).
|
||
|
|
||
|
cd `dirname ${0}`
|
||
|
if [ -r "${1}.fs" ]; then
|
||
|
toke "${1}.fs"
|
||
|
echo -n "MGFC" | cat - "${1}.fc" > ${1}.rom
|
||
|
else
|
||
|
echo "No source for ${1}!"
|
||
|
fi
|