Updated the cx16 library to the Commander X16 Kernal's prerelease 35.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
;
|
||||
; Start-up code for cc65 (CX16 version)
|
||||
; Start-up code for cc65 (CX16 r35 version)
|
||||
;
|
||||
|
||||
.export _exit
|
||||
@@ -46,7 +46,7 @@ _exit:
|
||||
|
||||
jsr donelib
|
||||
|
||||
.if 0 ; We no longer need to preserve zero-page space for cc65's variables.
|
||||
.if 0 ; We don't need to preserve zero-page space for cc65's variables.
|
||||
; Copy back the zero-page stuff.
|
||||
|
||||
ldx #zpspace-1
|
||||
@@ -83,14 +83,14 @@ init:
|
||||
and #<~$07
|
||||
sta VIA1::PRB
|
||||
|
||||
; Change to the first RAM bank.
|
||||
; Change to the second RAM bank.
|
||||
|
||||
lda VIA1::PRA2
|
||||
sta ramsave ; Save the current RAM bank number
|
||||
lda #$00 ; Choose RAM bank zero
|
||||
lda #$01
|
||||
sta VIA1::PRA2
|
||||
|
||||
.if 0 ; We no longer need to preserve zero-page space for cc65's variables.
|
||||
.if 0 ; We don't need to preserve zero-page space for cc65's variables.
|
||||
; Save the zero-page locations that we need.
|
||||
|
||||
ldx #zpspace-1
|
||||
@@ -107,7 +107,7 @@ L1: lda sp,x
|
||||
sta sp
|
||||
stx sp+1 ; Set argument stack ptr
|
||||
|
||||
; Switch to the second charset.
|
||||
; Switch to the lower/UPPER PetSCII charset.
|
||||
|
||||
lda #$0E
|
||||
jsr CHROUT
|
||||
|
||||
Reference in New Issue
Block a user