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

@@ -5,7 +5,7 @@
; this module also contains the popax function.
.export popax, incsp2
.importzp sp
.importzp spc
.macpack cpu
@@ -14,13 +14,13 @@
.proc popax
ldy #1
lda (sp),y ; get hi byte
lda (spc),y ; get hi byte
tax ; into x
.if (.cpu .bitand ::CPU_ISET_65SC02)
lda (sp) ; get lo byte
lda (spc) ; get lo byte
.else
dey
lda (sp),y ; get lo byte
lda (spc),y ; get lo byte
.endif
.endproc
@@ -29,14 +29,14 @@
.proc incsp2
inc sp ; 5
inc spc ; 5
beq @L1 ; 2
inc sp ; 5
inc spc ; 5
beq @L2 ; 2
rts
@L1: inc sp ; 5
@L2: inc sp+1 ; 5
@L1: inc spc ; 5
@L2: inc spc+1 ; 5
rts
.endproc