2 ; int cscanf(const char* format, ...);
4 ; 2000-12-01, Ullrich von Bassewitz
5 ; 2005-01-01, Greg King
10 .import pushax, addysp, _vcscanf
13 .include "zeropage.inc"
15 ; ----------------------------------------------------------------------------
19 sty ArgSize ; Number of argument bytes passed in .Y
20 dey ; subtract size of format pointer
24 ; Now, calculate the va_list pointer -- which points to format.
33 ; Push a copy of the format pointer onto the stack.
42 ; Load va_list [last and __fastcall__ argument for vcscanf()].
51 ; Clean up the stack. We will return what we got from vcscanf().
56 ; ----------------------------------------------------------------------------
61 .res 1 ; Number of argument bytes