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

@@ -31,22 +31,22 @@ _vscanf:
; Move the format down
ldy #2
lda (sp),y ; Load byte of format
lda (c_sp),y ; Load byte of format
ldy #0
sta (sp),y
sta (c_sp),y
ldy #3
lda (sp),y
lda (c_sp),y
ldy #1
sta (sp),y
sta (c_sp),y
; Store stdin into the stack frame
iny
lda _stdin
sta (sp),y
sta (c_sp),y
iny
lda _stdin+1
sta (sp),y
sta (c_sp),y
; Restore the low byte of ap and jump to vfscanf, which will cleanup the stack