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

@@ -6,7 +6,7 @@
.export _cprintf
.import pushax, addysp, _vcprintf
.importzp sp, ptr1
.importzp spc, ptr1
.macpack generic
@@ -31,9 +31,9 @@ _cprintf:
dey
dey ; Sub size of Format
tya
add sp
add spc
sta ptr1
ldx sp+1
ldx spc+1
bcc @L1
inx
@L1: stx ptr1+1

View File

@@ -23,8 +23,8 @@ _cscanf:
; Now, calculate the va_list pointer -- which points to format.
ldx sp+1
add sp
ldx spc+1
add spc
bcc @L1
inx
@L1: sta ptr1

View File

@@ -7,7 +7,7 @@
.export _vcprintf
.import pushax, popax, popptr1
.import __printf, _cputc
.importzp sp, ptr1, ptr2, ptr3, tmp1
.importzp spc, ptr1, ptr2, ptr3, tmp1
.macpack generic
.macpack cpu
@@ -138,10 +138,10 @@ _vcprintf:
; Get the format parameter and push it again
ldy #1
lda (sp),y
lda (spc),y
tax
dey
lda (sp),y
lda (spc),y
jsr pushax
; Replace the passed format parameter on the stack by &d - this creates
@@ -150,10 +150,10 @@ _vcprintf:
ldy #2 ; Low byte of d
lda #<outdesc
sta (sp),y
sta (spc),y
iny
lda #>outdesc
sta (sp),y
sta (spc),y
; Restore ap and call _printf