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 tosxor0ax, tosxoreax
.import addysp1
.importzp sp, sreg, tmp1
.importzp spc, sreg, tmp1
.macpack cpu
@@ -23,24 +23,24 @@ tosxor0ax:
tosxoreax:
.if (.cpu .bitand ::CPU_ISET_65SC02)
eor (sp) ; byte 0
eor (spc) ; byte 0
ldy #1
.else
ldy #0
eor (sp),y ; byte 0
eor (spc),y ; byte 0
iny
.endif
sta tmp1
txa
eor (sp),y ; byte 1
eor (spc),y ; byte 1
tax
iny
lda sreg
eor (sp),y ; byte 2
eor (spc),y ; byte 2
sta sreg
iny
lda sreg+1
eor (sp),y ; byte 3
eor (spc),y ; byte 3
sta sreg+1
lda tmp1