From eee79bfcc606671a7e734cc1dfefaf3f99687f2a Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 5 Nov 2023 10:33:24 -0600 Subject: [PATCH] Fix set_frame not removing old mappings --- kernel/vmem.z80 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/vmem.z80 b/kernel/vmem.z80 index 5922cae..9db264a 100644 --- a/kernel/vmem.z80 +++ b/kernel/vmem.z80 @@ -14,6 +14,11 @@ ; DE contains the bank # in the card ; The contents of A, IX and C are destroyed set_frame: + push bc + push de + call clear_frame + pop de + pop bc ld a, c ld (card_set+2), a ld (low_set+2), a