X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fcommon%2Fprintf.s;h=b164e887ddd674b40e3d21d1f014af244271bf1c;hb=6657214a18d41ce76e9ea1bc8b67977ee13d3645;hp=ad26b865576e5d6ea201a4ad81b16da84120ed43;hpb=88fc6399db93215697e1e732cc3035efdf744ab8;p=cc65 diff --git a/libsrc/common/printf.s b/libsrc/common/printf.s index ad26b8655..b164e887d 100644 --- a/libsrc/common/printf.s +++ b/libsrc/common/printf.s @@ -60,15 +60,14 @@ _printf: lda (ptr1),y jsr pushax -; Push the va_list +; Load va_list (last and __fastcall__ parameter to vfprintf) - lda ptr1 - ldx ptr1+1 - jsr pushax + lda ptr1 + ldx ptr1+1 ; Call vfprintf - jsr _vfprintf + jsr _vfprintf ; Cleanup the stack. We will return what we got from vfprintf