changed "spc" to "c_sp"

This commit is contained in:
Gorilla Sapiens
2025-06-04 06:37:59 +00:00
parent 3d118dc6e5
commit b6f42f9ab2
204 changed files with 913 additions and 909 deletions

View File

@@ -329,22 +329,22 @@ MainLoop:
jsr decsp6 ; 3 args
ldy #5
lda OutData+1
sta (spc),y
sta (c_sp),y
dey
lda OutData
sta (spc),y
sta (c_sp),y
dey
lda FSave+1
sta (spc),y
sta (c_sp),y
dey
lda FSave
sta (spc),y
sta (c_sp),y
dey
lda FCount+1
sta (spc),y
sta (c_sp),y
dey
lda FCount
sta (spc),y
sta (c_sp),y
jsr CallOutFunc ; Call the output function
; We're back from out(), or we didn't call it. Check for end of string.

View File

@@ -13,7 +13,7 @@
.import initlib, donelib
.import push0, _main
.import IRQStub, __nmi
.importzp spc
.importzp c_sp
; Linker-generated
.import __CARTSIZE__
@@ -86,8 +86,8 @@ start: sei
; Set up the stack
lda #<(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
ldx #>(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
sta spc
stx spc+1
sta c_sp
stx c_sp+1
; Call the module constructors.
jsr initlib

View File

@@ -18,7 +18,7 @@
.export memcpy_increment, memcpy_transfer, memcpy_getparams
.import incsp2, popax, popptr1
.importzp spc, ptr1, ptr2, ptr3
.importzp c_sp, ptr1, ptr2, ptr3
; The structure of the transfer instructions
@@ -86,9 +86,9 @@ memcpy_getparams:
; (Direct stack access is six cycles faster [total cycle count].)
iny ; (Y=0 by popptr1, need '1' here) save dest
lda (spc),y ; get high byte
lda (c_sp),y ; get high byte
tax
lda (spc) ; get low byte
lda (c_sp) ; get low byte
sta ptr2
stx ptr2+1
rts ; return dest address (for memmove)