# HG changeset patch # User William Astle # Date 1667543618 21600 # Node ID 80b9b4503bb414ab8a25af594c6e3539127e97da # Parent 80c18925436da5f2720fb268dfcbc0d5af9cf039 Adjust Coco 3 default MMU map for stock ROM compatibility It seems sensible to set up the default MMU mapping the same as the stock ROM does. Since the ROM area has to be up at the top of RAM anyway, there's no particular reason not to do that. diff -r 80c18925436d -r 80b9b4503bb4 src/lwbasic.s --- a/src/lwbasic.s Fri Nov 04 00:29:38 2022 -0600 +++ b/src/lwbasic.s Fri Nov 04 00:33:38 2022 -0600 @@ -356,9 +356,9 @@ 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 0x00,0x01,0x02,0x03 ; MMU task 0 (non-ROM area at bottom of RAM) + 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 0x00,0x01,0x02,0x03 ; MMU task 1 (copy of task 0) + fcb 0x38,0x39,0x3a,0x3b ; MMU task 1 (copy of task 0) fcb 0x3c,0x3d,0x3e,0x3f fcb 18,54,9,36,63,27,45,38 ; palette values (RGB) fcb 0,18,0,63,0,18,0,38