test #2674
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user