Fix set_frame not removing old mappings

This commit is contained in:
pjht 2023-11-05 10:33:24 -06:00
parent 8c0e2af93b
commit eee79bfcc6
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -14,6 +14,11 @@
; DE contains the bank # in the card ; DE contains the bank # in the card
; The contents of A, IX and C are destroyed ; The contents of A, IX and C are destroyed
set_frame: set_frame:
push bc
push de
call clear_frame
pop de
pop bc
ld a, c ld a, c
ld (card_set+2), a ld (card_set+2), a
ld (low_set+2), a ld (low_set+2), a