From: Brad Smith Date: Fri, 26 Feb 2016 22:33:46 +0000 (-0500) Subject: revise note on prototypes/K&R conventions X-Git-Tag: V2.16~171^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=222ab93026cdd03ea85c49a1999f5d568be2efab;p=cc65 revise note on prototypes/K&R conventions --- diff --git a/doc/cc65-intern.sgml b/doc/cc65-intern.sgml index f3aef939a..0bcb51cba 100644 --- a/doc/cc65-intern.sgml +++ b/doc/cc65-intern.sgml @@ -40,7 +40,11 @@ If the Prologue, before the function call

@@ -57,8 +61,9 @@ All other parameters will be pushed to the C-stack from left to right. The rightmost parameter will have the lowest address on the stack, and multi-byte parameters will have their least significant byte at the lower address. -The @@ -84,10 +89,6 @@ void foo(unsigned bar, unsigned char baz); lda (sp),y ; Low byte now in A -Variadic functions push all parameters exactly as other Epilogue, after the functiona call

Return requirements

@@ -106,10 +107,10 @@ of A/X/sreg, so these may be clobbered by the function. The C-stack pointer