X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=uebersetzerbau-ss10.git;a=blobdiff_plain;f=gesamt%2Fcode.bfe;h=e0a2e7896542d90b9e37e8e7daa65f5dc696c04f;hp=4bd1e83219cba8d57c760efedf09eb946abd7153;hb=6aa10df8764b244c11269262eb3af806b0d0b82f;hpb=1f69755cb0e48076561af56a5f7d66a79da681be diff --git a/gesamt/code.bfe b/gesamt/code.bfe index 4bd1e83..e0a2e78 100644 --- a/gesamt/code.bfe +++ b/gesamt/code.bfe @@ -198,7 +198,7 @@ void make_call(struct treenode *bnode) printf("\txchg %%%s, %d(%%rsp)\n", param_reg(j), j*8); } printf("\t//vars pushen\n"); - for(j = 6; j > 6 - bnode->vars; j--) { + for(j = VARBEGIN; j > VARBEGIN - bnode->vars; j--) { printf("\tpushq %%%s\n", param_reg(j)); } @@ -220,7 +220,7 @@ void make_call(struct treenode *bnode) } /* vars poppen */ - for(j = 7 - bnode->vars; j < 7; j++) { + for(j = VARBEGIN+1 - bnode->vars; j < VARBEGIN+1; j++) { printf("\tpopq %%%s\n", param_reg(j)); }