bin2sna: Add a tool to turn out banked ZX Spectrum 128 binaries into .SNA
authorAlan Cox <alan@linux.intel.com>
Tue, 10 Feb 2015 23:36:14 +0000 (23:36 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 10 Feb 2015 23:36:14 +0000 (23:36 +0000)
commite93f13a8b0cfe156fe2b272decfe6b770d85b939
tree41e403b50a4910707c48124ed3f024c10cffc159
parent65e21623a9b7b261063164990da7e53118cf2094
bin2sna: Add a tool to turn out banked ZX Spectrum 128 binaries into .SNA

This provides a quick and handy way to prove they aren't working yet.

The tool loads the common memory, bank1/2/3.bin into the right banks in the
SNA image and then executes from 0xC003 (0xC000 is the main entry point,
0xC003 is a hack for now for a preloaded and positioned image)

At that point we hit crt0.s and crash somewhere early on trying to bank switch
Kernel/cpu-z80/image.mk
Kernel/tools/bin2sna.c [new file with mode: 0644]