From 222ab93026cdd03ea85c49a1999f5d568be2efab Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 26 Feb 2016 17:33:46 -0500 Subject: [PATCH] revise note on prototypes/K&R conventions --- doc/cc65-intern.sgml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) 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