From 371e593f1dd804c5aa3707e495f9bdaf6dfa97f7 Mon Sep 17 00:00:00 2001 From: Lephe Date: Tue, 4 Jun 2024 17:57:09 +0200 Subject: [PATCH] gint: get 104 kB of end RAM instead of 64 kB with HH2 --- fxcp_hh2.ld.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fxcp_hh2.ld.c b/fxcp_hh2.ld.c index 6f19dad..46b0713 100644 --- a/fxcp_hh2.ld.c +++ b/fxcp_hh2.ld.c @@ -10,8 +10,10 @@ MEMORY { /* VRAM backup - our main fixed area to load code, size 320x528x2 */ ram (rwx): o = 0x8c052800, l = 337920 - /* End-of-RAM area, 64 kB are safe to use according to experience */ - eram (rwx): o = 0x8cff0000, l = 61184 /* 64k - 0x1100 */ + /* End-of-RAM area, 104 kB are safe to use according to experience. What + happens is HollyHock itself is loaded at 0x8cfe0000 (128 kB before the + end) so we have to fit after it. CPBoy uses 0x8cfe6000, follow that. */ + eram (rwx): o = 0x8cfe6000, l = 102144 /* 104k - 0x1100 */ /* Space for the vbr */ vbr (rwx): o = 0x8cffef00, l = 0x1100 /* On-chip IL memory */