On Tue, May 29, 2012 at 11:32:59AM +0200, Christian Grössler wrote: > Don't remember the cc65 calling convention right now (long time no cc65 > work), but how does the cbm_opendir() routine know how many parameters > were passed? On assembler level, the size of the argument list in bytes is passed to variadic functions in the Y register. On C level, there is a local symbol named __argsize__ that is either a constant (for normal functions) or a variable (for variadic functions). It contains the size of the argument list in bytes. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue May 29 14:37:31 2012
This archive was generated by hypermail 2.1.8 : 2012-05-29 14:37:34 CEST