2 ; int __fastcall__ vsprintf (char* Buf, const char* Format, va_list ap);
4 ; Ullrich von Bassewitz, 2009-09-26
8 .import pushw0sp, staxysp
12 ; ----------------------------------------------------------------------------
13 ; vsprintf - formatted output into a buffer
15 ; int __fastcall__ vsprintf (char* buf, const char* format, va_list ap);
20 pha ; Save low byte of ap
22 pha ; Save high byte of op
24 ; Build a stackframe for vsnprintf. To do that, we move format one word down,
25 ; and store 0x7FFF (INT_MAX) as size.
27 jsr pushw0sp ; Get format and push it
33 ; Contine by jumping to vsnprintf, which expects ap on the CPU stack and will