From: cuz Date: Mon, 18 Nov 2002 11:16:18 +0000 (+0000) Subject: Set the file name bank to bank zero on startup to make our file routines X-Git-Tag: V2.12.0~2097 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd2b108cd0ac09b720d035e3d9b3a5367df4ceda;p=cc65 Set the file name bank to bank zero on startup to make our file routines work. git-svn-id: svn://svn.cc65.org/cc65/trunk@1535 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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.