changed "spc" to "c_sp"
This commit is contained in:
@@ -115,7 +115,7 @@ entry: php
|
||||
tya
|
||||
sec
|
||||
sbc #7
|
||||
sta $1FF ; Save new spc
|
||||
sta $1FF ; Save new c_sp
|
||||
tay
|
||||
|
||||
tsx
|
||||
@@ -143,7 +143,7 @@ entry: php
|
||||
iny
|
||||
sta (sysp1),y
|
||||
|
||||
ldy $1FF ; Restore spc in bank 15
|
||||
ldy $1FF ; Restore c_sp in bank 15
|
||||
|
||||
lda #.hibyte(expull-1)
|
||||
sta (sysp1),y
|
||||
@@ -243,7 +243,7 @@ L1: lda extzp,x
|
||||
dex
|
||||
bpl L1
|
||||
|
||||
; Save the old stack pointer from the system bank; and, set up our hw spc.
|
||||
; Save the old stack pointer from the system bank; and, set up our hw c_sp.
|
||||
|
||||
tsx
|
||||
txa
|
||||
@@ -277,9 +277,9 @@ L3: lda vectors,x
|
||||
; Set up the C stack.
|
||||
|
||||
lda #.lobyte(callbank15::entry)
|
||||
sta spc
|
||||
sta c_sp
|
||||
lda #.hibyte(callbank15::entry)
|
||||
sta spc+1
|
||||
sta c_sp+1
|
||||
|
||||
; Set up the subroutine and jump vector table that redirects Kernal calls to
|
||||
; the system bank.
|
||||
@@ -400,7 +400,7 @@ _exit: pha ; Save the return code
|
||||
; Set up the welcome code at the stack bottom in the system bank.
|
||||
|
||||
ldy #$FF
|
||||
lda (sysp1),y ; Load system bank spc
|
||||
lda (sysp1),y ; Load system bank c_sp
|
||||
tax
|
||||
iny ; Y = 0
|
||||
lda #$58 ; CLI opcode
|
||||
|
||||
Reference in New Issue
Block a user