diff --git a/libsrc/c128/c128.inc b/libsrc/c128/c128.inc index 87d88f19e..f59180704 100644 --- a/libsrc/c128/c128.inc +++ b/libsrc/c128/c128.inc @@ -37,6 +37,9 @@ CURS_OFF = $CD9F CLRSCR = $C142 KBDREAD = $C006 +; Extended jump table +SETBNK = $FF68 + ; --------------------------------------------------------------------------- ; Vectors diff --git a/libsrc/c128/crt0.s b/libsrc/c128/crt0.s index b58550e45..7f77305e3 100644 --- a/libsrc/c128/crt0.s +++ b/libsrc/c128/crt0.s @@ -55,6 +55,11 @@ Head: .word @Next lda #14 jsr BSOUT +; Set the bank for the file name our execution bank + + ldx #0 + jsr SETBNK + ; Before doing anything else, we have to setup our banking configuration. ; Otherwise just the lowest 16K are actually RAM. Writing through the ROM ; to the underlying RAM works, but it is bad style.