# HG changeset patch # User William Astle # Date 1667608847 21600 # Node ID 8d4c0ffa230806cd7ff727f3f4ff99761a779fee # Parent f9ec351dd82b54d08eee31c0ae7b4efd4bbf8aa3 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. diff -r f9ec351dd82b -r 8d4c0ffa2308 src/lwbasic.s --- 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)