diff --git a/src/bef2c.c b/src/bef2c.c index a085424..26af5fb 100644 --- a/src/bef2c.c +++ b/src/bef2c.c @@ -302,10 +302,10 @@ fprintf(fo, DOWN ": fscanf(stdin,\"%cld\",&b);push(b); goto " DOWN ";\n", x, y, '%', x, y_down); break; case '~': - fprintf(fo, RIGHT ": c=fgetc(stdin);push(c); goto " RIGHT ";\n", x, y, '%', x_right, y); - fprintf(fo, LEFT ": c=fgetc(stdin);push(c); goto " LEFT ";\n", x, y, '%', x_left, y); - fprintf(fo, UP ": c=fgetc(stdin);push(c); goto " UP ";\n", x, y, '%', x, y_up); - fprintf(fo, DOWN ": c=fgetc(stdin);push(c); goto " DOWN ";\n", x, y, '%', x, y_down); + fprintf(fo, RIGHT ": c=fgetc(stdin);push(c); goto " RIGHT ";\n", x, y, x_right, y); + fprintf(fo, LEFT ": c=fgetc(stdin);push(c); goto " LEFT ";\n", x, y, x_left, y); + fprintf(fo, UP ": c=fgetc(stdin);push(c); goto " UP ";\n", x, y, x, y_up); + fprintf(fo, DOWN ": c=fgetc(stdin);push(c); goto " DOWN ";\n", x, y, x, y_down); break; case '"': /* ha! */ ECHO("puts(\"Error: compiled Befunge does not support stringmode\n\");");