rename "sp" to "spc", avoid conflict with 4510 opcodes

This commit is contained in:
Gorilla Sapiens
2025-06-04 02:06:40 +00:00
parent 58171691d0
commit 3d118dc6e5
204 changed files with 908 additions and 908 deletions

View File

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