diff lwbasic/emit.c @ 27:77626fc37af2

Added support for removing stack from in epilog
author lost@l-w.ca
date Thu, 27 Jan 2011 20:46:44 -0700
parents 26aa76da75ad
children 49d608aecc4d
line wrap: on
line diff
--- a/lwbasic/emit.c	Thu Jan 27 20:44:57 2011 -0700
+++ b/lwbasic/emit.c	Thu Jan 27 20:46:44 2011 -0700
@@ -41,7 +41,11 @@
 	}
 }
 
-void emit_epilog(cstate *state)
+void emit_epilog(cstate *state, int framesize)
 {
+	if (framesize > 0)
+	{
+		printf("\tleas %d,s\n", framesize);
+	}
 	printf("\trts\n");
 }