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

@@ -7,7 +7,7 @@
.export _vprintf
.import _vfprintf, _stdout
.import decsp2
.importzp sp
.importzp c_sp
.proc _vprintf
@@ -23,20 +23,20 @@
; Move the format parameter down and store stdout in it's place
ldy #2
lda (sp),y
lda (c_sp),y
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
iny
lda _stdout
sta (sp),y
sta (c_sp),y
iny
lda _stdout+1
sta (sp),y
sta (c_sp),y
; Restore A