trs80: minimal changes for banker modded TRS80
authorAlan Cox <alan@linux.intel.com>
Wed, 16 May 2018 21:21:19 +0000 (22:21 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 16 May 2018 21:21:19 +0000 (22:21 +0100)
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

index 5e11cd8..942c24f 100644 (file)
             .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