This script creates a new encoded header including checksumming for a 256kb ROM.
Thus automating the process of encoding which is described elsewhere.
As are the sourcecodes for the programs.
The encodes stage 2 you can just copy of any of the newer commerical ROMs.
The stage 1 source you would have to decode and reassemble from any of the newer commerical ROMs.
#!/bin/bash echo "Add a loader to a 256kb ROM (well 1024bytes/block)" echo "Process $1, get dir entries" buildchk $1 256 echo "now romdir.i and checkstring.src have been created" echo "next assmble new stage1 using loader_stage1.asm" lyxass -d -o "$1.stage1_plain" loader_stage1.asm lynxenc "$1.stage1_plain" "$1.stage1_enc" OUT="$1_mod.lyx" echo "Copy Image file to new name... $OUT" cp "$1" $OUT ## Now write the stage 1 part (which depend on file dir) SIZE1=154 dd if="$1.stage1_enc" of="$OUT" bs=1 count=$SIZE1 conv=notrunc ## Now write the stage 2 part SIZE2=256 dd if="loader.stage2_256k_enc" of="$OUT" bs=1 count=$SIZE2 conv=notrunc seek=$SIZE1 OUT2="_$(basename "$OUT")" echo "Now make a lnx... $OUT" mv $OUT "$OUT2" make_lnx "$OUT2" -b0 256k echo "Finished"