From 8b1b6d0dc4f7fe8f131b60b03c2748b811432185 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 25 Apr 2018 14:03:47 +0100 Subject: [PATCH] ubee: fix memory probing for banked video With this change no TC ubees get to the point you can type keys at which point the keyboard driver returns crap. --- Kernel/platform-ubee/ubee.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/platform-ubee/ubee.s b/Kernel/platform-ubee/ubee.s index 689ea64e..a9644efe 100644 --- a/Kernel/platform-ubee/ubee.s +++ b/Kernel/platform-ubee/ubee.s @@ -98,7 +98,7 @@ scan_ram: inc de out (0x50),a ; select proposed bank ld (ix),c ; write to it - ld a,#4 + ld a,#0x0C out (0x50),a ; back to bank 0 ld a,(ix) ; read it back cp c ; did it mess with bank 0L ? @@ -111,11 +111,11 @@ scan_done: page_codes: ; Detect a standard or premium 128K system - .byte 0x06 ; write 1 to bank 1L 0x80 + .byte 0x0E ; write 1 to bank 1L 0x80 ; Detect a system with a 256K expansion mod - .byte 0x44 ; write 1 to bank 2L 0x80 + .byte 0x4C ; write 1 to bank 2L 0x80 ; Detect a system with a 512K expansion mod - .byte 0x84 ; write 1 to bank 4L 0x80 + .byte 0x8C ; write 1 to bank 4L 0x80 ; We don't handle the modern ubee premium plus emulated thing .byte 0x00 ; and done -- 2.34.1