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 tosxora0, tosxorax
.import addysp1
.importzp sp, tmp1
.importzp spc, tmp1
.macpack cpu
@@ -15,16 +15,16 @@ tosxora0:
ldx #$00
tosxorax:
.if (.cpu .bitand CPU_ISET_65SC02)
eor (sp)
eor (spc)
ldy #1
.else
ldy #0
eor (sp),y
eor (spc),y
iny
.endif
sta tmp1
txa
eor (sp),y
eor (spc),y
tax
lda tmp1
jmp addysp1 ; drop TOS, set condition codes