tgl6502: tool can now automatically merge a monitor
authorAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 13:18:19 +0000 (13:18 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 13:18:19 +0000 (13:18 +0000)
Kernel/platform-tgl6502/README
Kernel/tools/tglsplice

index 3417ed6..768cae8 100644 (file)
@@ -51,6 +51,16 @@ tools/tglsplice
 
 and you'll get a 6502.rom
 
+If you have a filesystem tgl_rootfs of 64K it will add this into the ROM
+image at the top. (Note this may move in future as the top block may become
+reserved for the tgl code).
+
+If you have a monitor then put it in binary form in tgl_monitor and it'll
+be merged with the image. The monitor will be mapped at 0xE000 and entered
+at that address. It must fit in the 8K minus the vectors. On entry there
+isn't really any RAM free as such but 1F00-1FFF is probably a fairly safe
+place to store workspace without trashing the Fuzix image.
+
 TODO
 ----
 - usermem functionality
index ea11da1..226f863 100755 (executable)
@@ -11,3 +11,7 @@ rm tmp_fuzix.b0 tmp_fuzix.v tmp_fuzix.b1
 if [ -e tgl_rootfs ] ; then
        dd if=tgl_rootfs of=6502.rom bs=1 seek=65536 count=65536 conv=notrunc
 fi
+
+if [ -e tgl_monitor ] ; then
+       dd if=tgl_monitor of=6502.rom bs=1 seek=8192 count=8180 conv=notrunc
+fi