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

@@ -12,7 +12,7 @@
.export leave00, leave0, leavey00, leavey0, leavey
.export leave
.import addysp
.importzp spc
.importzp c_sp
.macpack cpu
@@ -31,24 +31,24 @@ leavey:
.if (.cpu .bitand ::CPU_ISET_65SC02)
leave: tay ; save A a sec
lda (spc) ; that's the pushed arg size
lda (c_sp) ; that's the pushed arg size
sec ; Count the byte, the count's stored in
adc spc
sta spc
adc c_sp
sta c_sp
bcc L1
inc spc+1
inc c_sp+1
L1: tya ; Get return value back
.else
leave: pha ; save A a sec
ldy #0
lda (spc),y ; that's the pushed arg size
lda (c_sp),y ; that's the pushed arg size
sec ; Count the byte, the count's stored in
adc spc
sta spc
adc c_sp
sta c_sp
bcc L1
inc spc+1
inc c_sp+1
L1: pla ; Get return value back
.endif