changeset 10:8d4c0ffa2308

Fix GIME initializer so the text screen shows properly Need to make sure "COCO" mode is enabled and that the VOFFSET bits specifying the 64K memory page are set properly.
author William Astle <lost@l-w.ca>
date Fri, 04 Nov 2022 18:40:47 -0600
parents f9ec351dd82b
children b2212c9de7b7
files src/lwbasic.s
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lwbasic.s	Fri Nov 04 18:31:05 2022 -0600
+++ b/src/lwbasic.s	Fri Nov 04 18:40:47 2022 -0600
@@ -353,14 +353,14 @@
                 ifdef COCO3
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; GIME register initializer
-gime_init       fcb GIME_MMUEN|GIME_FExx|GIME_SCS|GIME_ROMI32 ; enable MMU, SCS, constant page, internal ROM
+gime_init       fcb GIME_COCO|GIME_MMUEN|GIME_FExx|GIME_SCS|GIME_ROMI32 ; enable MMU, SCS, constant page, internal ROM
                 fcb GIME_TASK0                  ; use MMU task 0
                 fcb 0                           ; do not enable IRQ sources
                 fcb 0                           ; do not enable FIRQ sources
-                fcb 0xfff                       ; set timer to max value
+                fdb 0xfff                       ; set timer to max value
                 fdb 0                           ; *reserved placeholder*
                 fcb 0,0,0,0                     ; SG4 screen settings with black border
-                fcb 0x0f,0x00,0x00,0x00         ; (puts screen in bottom 64K of memory)
+                fcb 0x0f,0xe0,0x00,0x00         ; (puts screen in bottom 64K of memory)
                 fcb 0x38,0x39,0x3a,0x3b         ; MMU task 0 (bottom of top 64K of RAM)
                 fcb 0x3c,0x3d,0x3e,0x3f         ; (ROM shadow must be in 3c...3f)
                 fcb 0x38,0x39,0x3a,0x3b         ; MMU task 1 (copy of task 0)