From 71a658c9064cb0c4b512c6992613f50b8fb5a61e Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 10 Jan 2015 00:44:48 +0000 Subject: [PATCH] tglsplice: turns fuzix.bin into 6502.rom. We burn a bank the way we do it right now. Possibly we could instead swap two banks over so that 0x41 stays the top bank. --- Kernel/tools/tglsplice | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Kernel/tools/tglsplice diff --git a/Kernel/tools/tglsplice b/Kernel/tools/tglsplice new file mode 100755 index 00000000..91414643 --- /dev/null +++ b/Kernel/tools/tglsplice @@ -0,0 +1,11 @@ +#!/bin/sh +dd if=fuzix.bin of=tmp_fuzix.b0 bs=8192 count=1 +dd if=fuzix.bin of=tmp_fuzix.v bs=1 skip=49146 count=6 +dd if=/dev/zero of=tmp_fuzix.b1 bs=8186 count=1 + +cat tmp_fuzix.b0 tmp_fuzix.b1 tmp_fuzix.v >6502.rom +dd if=fuzix.bin bs=8192 skip=1 seek=2 of=6502.rom + +rm tmp_fuzix.b0 tmp_fuzix.v tmp_fuzix.b1 + + -- 2.34.1