comparison 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
comparison
equal deleted inserted replaced
26:26aa76da75ad 27:77626fc37af2
39 { 39 {
40 printf("\tleas %d,s\n", -framesize); 40 printf("\tleas %d,s\n", -framesize);
41 } 41 }
42 } 42 }
43 43
44 void emit_epilog(cstate *state) 44 void emit_epilog(cstate *state, int framesize)
45 { 45 {
46 if (framesize > 0)
47 {
48 printf("\tleas %d,s\n", framesize);
49 }
46 printf("\trts\n"); 50 printf("\trts\n");
47 } 51 }