From fd2b108cd0ac09b720d035e3d9b3a5367df4ceda Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 18 Nov 2002 11:16:18 +0000 Subject: [PATCH] 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 --- libsrc/c128/c128.inc | 3 +++ libsrc/c128/crt0.s | 5 +++++ 2 files changed, 8 insertions(+) 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. -- 2.39.5