diff --git a/mos-platform/c128/init-mmu.S b/mos-platform/c128/init-mmu.S index 4cad7ca1..62a70556 100644 --- a/mos-platform/c128/init-mmu.S +++ b/mos-platform/c128/init-mmu.S @@ -10,6 +10,8 @@ __mmusave: sta __mmusave lda #MMU_CFG_RAM0_KERNAL ; map $4000-$BFFF to RAM, $C000-$FFFF to KERNAL/chargen sta MMU_CR + lda #0 + sta FNAM_BANK ; set the bank for the file name to our execution bank ; restore MMU state after all other exit handlers have completed .section .fini.990,"ax", @progbits