]> git.sur5r.net Git - cc65/commitdiff
Set the file name bank to bank zero on startup to make our file routines
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 18 Nov 2002 11:16:18 +0000 (11:16 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 18 Nov 2002 11:16:18 +0000 (11:16 +0000)
work.

git-svn-id: svn://svn.cc65.org/cc65/trunk@1535 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/c128/c128.inc
libsrc/c128/crt0.s

index 87d88f19e6309fe80ab05f0241bcae4a70291af2..f59180704886db6fc415690f2a601b9346764229 100644 (file)
@@ -37,6 +37,9 @@ CURS_OFF        = $CD9F
 CLRSCR         = $C142
 KBDREAD                = $C006
 
+; Extended jump table
+SETBNK          = $FF68
+
 ; ---------------------------------------------------------------------------
 ; Vectors
 
index b58550e4509d49947ef84a81622b150074e317ce..7f77305e36da1a4150f9fc22ac164b467f65b985 100644 (file)
@@ -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.