From: Alan Cox Date: Wed, 16 May 2018 21:21:19 +0000 (+0100) Subject: trs80: minimal changes for banker modded TRS80 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b5fa50d31ace1da61111e54faea293798c9b23b5;p=FUZIX.git trs80: minimal changes for banker modded TRS80 For the Dave Huffman style mod we need to set the extra port up. We don't yet use the extra memory but at least we now don't crash. Other variants of this should just work either way as they don't boot up in a weird state. --- diff --git a/Kernel/platform-trs80/trs80-bank.s b/Kernel/platform-trs80/trs80-bank.s index 5e11cd86..942c24fd 100644 --- a/Kernel/platform-trs80/trs80-bank.s +++ b/Kernel/platform-trs80/trs80-bank.s @@ -32,6 +32,12 @@ .area _CODE init_hardware: + in a,(0x94) ; Check for the Huffman banking + cp #0xFF ; mod. If so set 0x94 bit 0 so + jr z, bank_normal ; we run sanely + set 0,a + out (0x94),a +bank_normal: ; set system RAM size ld hl, #128 ld (_ramsize), hl