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