It works for if and while statments. Number of params not going well
This commit is contained in:
@ -496,7 +496,7 @@ void emit_as_file(FILE * out_file, Instruction * i){
|
||||
break;
|
||||
case E_IF_X_TRUE:
|
||||
fprintf(out_file,
|
||||
"%4.d: if %s goto %d\n",
|
||||
"%4.d: if %s GOTO %d\n",
|
||||
i->index,
|
||||
get_string(i->operand1),
|
||||
i->label
|
||||
@ -504,7 +504,7 @@ void emit_as_file(FILE * out_file, Instruction * i){
|
||||
break;
|
||||
case E_IF_X_FALSE:
|
||||
fprintf(out_file,
|
||||
"%4.d: if %s false goto %d\n",
|
||||
"%4.d: if %s false GOTO %d\n",
|
||||
i->index,
|
||||
get_string(i->operand1),
|
||||
i->label
|
||||
|
Reference in New Issue
Block a user