From: Alan Cox Date: Fri, 16 Jan 2015 13:18:19 +0000 (+0000) Subject: tgl6502: tool can now automatically merge a monitor X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bf3cad0c37bf0f027e0f986da5a663a5f7c800b8;p=FUZIX.git tgl6502: tool can now automatically merge a monitor --- diff --git a/Kernel/platform-tgl6502/README b/Kernel/platform-tgl6502/README index 3417ed65..768cae84 100644 --- a/Kernel/platform-tgl6502/README +++ b/Kernel/platform-tgl6502/README @@ -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 diff --git a/Kernel/tools/tglsplice b/Kernel/tools/tglsplice index ea11da12..226f863f 100755 --- a/Kernel/tools/tglsplice +++ b/Kernel/tools/tglsplice @@ -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