From b5fa50d31ace1da61111e54faea293798c9b23b5 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 16 May 2018 22:21:19 +0100 Subject: [PATCH] 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. --- Kernel/platform-trs80/trs80-bank.s | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.34.1