This commit is contained in:
mrdudz
2025-06-23 17:09:06 +02:00
parent 4863a3e29b
commit 5fc15a7a60
204 changed files with 915 additions and 912 deletions

View File

@@ -14,7 +14,7 @@
.import pushwysp
.import tosumulax, tosudivax
.importzp ptr1, sp
.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 (sp)
lda (c_sp)
sta ptr1
add #1
sta (sp)
sta (c_sp)
ldy #1
.else
ldy #0
lda (sp),y
lda (c_sp),y
sta ptr1
add #1
sta (sp),y
sta (c_sp),y
iny
.endif
lda (sp),y
lda (c_sp),y
sta ptr1+1
adc #0
sta (sp),y ; ptr1 = buf++;
sta (c_sp),y ; ptr1 = buf++;
; Get the buffered character and place it as first character into the read
; buffer.