2 ; int cprintf (const char* Format, ...);
4 ; Ullrich von Bassewitz, 1.12.2000
8 .import pushax, addysp, _vcprintf
13 ; ----------------------------------------------------------------------------
18 ParamSize: .res 1 ; Number of parameter bytes
20 ; ----------------------------------------------------------------------------
27 sty ParamSize ; Number of param bytes passed in Y
29 ; Calculate a pointer that points to Format
32 dey ; Sub size of Format
50 ; Load va_list (last and __fastcall__ parameter to vfprintf)
59 ; Cleanup the stack. We will return what we got from vcprintf