trs80: introduce a model type
authorAlan Cox <alan@linux.intel.com>
Thu, 24 May 2018 14:28:15 +0000 (15:28 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 24 May 2018 14:28:15 +0000 (15:28 +0100)
Kernel/platform-trs80m1/trs80.h [new file with mode: 0644]

diff --git a/Kernel/platform-trs80m1/trs80.h b/Kernel/platform-trs80m1/trs80.h
new file mode 100644 (file)
index 0000000..3aadcaa
--- /dev/null
@@ -0,0 +1,30 @@
+
+extern uint8_t trs80_model;
+#define TRS80_MODEL1   0
+#define TRS80_MODEL3   1
+#define LNW80          2       /* Need to handle LNW80 model II.. */
+#define VIDEOGENIE     3       /* But colour genie may be too different.. */
+
+
+/*
+ *     Differences versus model 1
+ *
+ *     LNW80           Port 0xFE control for memory, extra graphics modes,
+ *                     (not currently supported). 4MHz CPU mode. Memory
+ *                     expansions include the selector.
+ *     LNW80 II        Adds 4 banks of graphics memory it seems. Also adds
+ *                     port 0x1f which controls low system RAM
+ *                     (bit 1 - ROM off if set, bit 2 blocks IRQ if set)
+ *     VideoGenie      Printer at 0xFD not memory mapped. The earlier
+ *                     expansion unit is a 3 slot S100 backplane so can be
+ *                     fitted with banked S100 memory (only the upper 32K
+ *                     seems to map to the S100). Some had lower case.
+ *     Model 3         Floppy moves to 0xF0-F4/F7 except for status, Sound
+ *                     click moves to 0x90 printer to 0xFB. 0xEF control
+ *                     register, NMI control, Interrupt mask register.
+ *                     Interrupt latch doesn't ack timer and is inverted.
+ *                     Lower case !!
+ *
+ *     Note that the Colour Genie is a very different beast.
+ *     
+ */
\ No newline at end of file