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 _vprintf
.import _vfprintf, _stdout
.import decsp2
.importzp sp
.importzp spc
.proc _vprintf
@@ -23,20 +23,20 @@
; Move the format parameter down and store stdout in it's place
ldy #2
lda (sp),y
lda (spc),y
ldy #0
sta (sp),y
sta (spc),y
ldy #3
lda (sp),y
lda (spc),y
ldy #1
sta (sp),y
sta (spc),y
iny
lda _stdout
sta (sp),y
sta (spc),y
iny
lda _stdout+1
sta (sp),y
sta (spc),y
; Restore A