1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-28 10:55:43 +00:00

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
This commit is contained in:
cuz 2002-11-18 11:16:18 +00:00
parent 1075d1e193
commit fd2b108cd0
2 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,9 @@ CURS_OFF = $CD9F
CLRSCR = $C142
KBDREAD = $C006
; Extended jump table
SETBNK = $FF68
; ---------------------------------------------------------------------------
; Vectors

View 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.