diff options
Diffstat (limited to 'src/tpc.y')
-rw-r--r-- | src/tpc.y | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -114,10 +114,7 @@ ListTypVar: | |||
114 | | TYPE IDENT { gen_declaration($<ident>2, $<type>1, scope); $<num>$ = 1; } | 114 | | TYPE IDENT { gen_declaration($<ident>2, $<type>1, scope); $<num>$ = 1; } |
115 | ; | 115 | ; |
116 | Corps: | 116 | Corps: |
117 | '{' { int i; | 117 | '{' { gen_function_param_passing(nb_param[num_scope]); } |
118 | for(i=1;i<=nb_param[num_scope];i++){ | ||
119 | fprintf(output, "mov r8, [rbp + %d]\nmov [rbp - %d], r8\n", (nb_param[num_scope]-i+2)*8, i*8); | ||
120 | } } | ||
121 | DeclConsts DeclVars SuiteInstr '}' | 118 | DeclConsts DeclVars SuiteInstr '}' |
122 | ; | 119 | ; |
123 | SuiteInstr: | 120 | SuiteInstr: |