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

@@ -14,7 +14,7 @@
.import pushwysp
.import tosumulax, tosudivax
.importzp ptr1, spc
.importzp ptr1, c_sp
.include "errno.inc"
.include "_file.inc"
@@ -136,23 +136,23 @@
; to read() by one, so read() starts to store data at buf+1.
.if (.cpu .bitand ::CPU_ISET_65SC02)
lda (spc)
lda (c_sp)
sta ptr1
add #1
sta (spc)
sta (c_sp)
ldy #1
.else
ldy #0
lda (spc),y
lda (c_sp),y
sta ptr1
add #1
sta (spc),y
sta (c_sp),y
iny
.endif
lda (spc),y
lda (c_sp),y
sta ptr1+1
adc #0
sta (spc),y ; ptr1 = buf++;
sta (c_sp),y ; ptr1 = buf++;
; Get the buffered character and place it as first character into the read
; buffer.