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

@@ -7,7 +7,7 @@
.export tosand0ax, tosandeax
.import addysp1
.importzp sp, sreg, tmp1
.importzp spc, sreg, tmp1
.macpack cpu
@@ -23,24 +23,24 @@ tosand0ax:
tosandeax:
.if (.cpu .bitand ::CPU_ISET_65SC02)
and (sp) ; byte 0
and (spc) ; byte 0
ldy #1
.else
ldy #0
and (sp),y ; byte 0
and (spc),y ; byte 0
iny
.endif
sta tmp1
txa
and (sp),y ; byte 1
and (spc),y ; byte 1
tax
iny
lda sreg
and (sp),y ; byte 2
and (spc),y ; byte 2
sta sreg
iny
lda sreg+1
and (sp),y ; byte 3
and (spc),y ; byte 3
sta sreg+1
lda tmp1