changed "spc" to "c_sp"

This commit is contained in:
Gorilla Sapiens
2025-06-04 06:37:59 +00:00
parent 3d118dc6e5
commit b6f42f9ab2
204 changed files with 913 additions and 909 deletions

View File

@@ -8,7 +8,7 @@
.export _vsnprintf, vsnprintf
.import ldaxysp, popax, incsp2, incsp6
.import _memcpy, __printf
.importzp spc, ptr1
.importzp c_sp, ptr1
.include "errno.inc"
@@ -55,19 +55,19 @@ vsnprintf:
; be formatted and counted.
ldy #2
lda (spc),y
lda (c_sp),y
sta ptr1
lda #<outdesc
sta (spc),y
sta (c_sp),y
iny
lda (spc),y
lda (c_sp),y
bmi L9 ; More than $7FFF
sta ptr1+1
lda #>outdesc
sta (spc),y
sta (c_sp),y
; Write size-1 to outdesc.uns. It will be -1 if there is no buffer.
@@ -178,12 +178,12 @@ out:
clc
adc ccount+0
ldy #4
sta (spc),y
sta (c_sp),y
lda bufptr+1
adc ccount+1
iny
sta (spc),y
sta (c_sp),y
; Get Count from stack