git @ Cat's Eye Technologies Befunge-93 / e1979a4
We really do want to write out characters, not ASCII values, here. Chris Pressey 3 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
245245 {
246246 case '0': case '1': case '2': case '3': case '4':
247247 case '5': case '6': case '7': case '8': case '9':
248 fprintf(fo, RIGHT ": push(%d); goto " RIGHT ";\n", x, y, cur, x_right, y);
249 fprintf(fo, LEFT ": push(%d); goto " LEFT ";\n", x, y, cur, x_left, y);
250 fprintf(fo, UP ": push(%d); goto " UP ";\n", x, y, cur, x, y_up);
251 fprintf(fo, DOWN ": push(%d); goto " DOWN ";\n", x, y, cur, x, y_down);
248 fprintf(fo, RIGHT ": push(%c); goto " RIGHT ";\n", x, y, cur, x_right, y);
249 fprintf(fo, LEFT ": push(%c); goto " LEFT ";\n", x, y, cur, x_left, y);
250 fprintf(fo, UP ": push(%c); goto " UP ";\n", x, y, cur, x, y_up);
251 fprintf(fo, DOWN ": push(%c); goto " DOWN ";\n", x, y, cur, x, y_down);
252252 break;
253253 case '>': /* PC Right */
254254 fprintf(fo, ALL, x, y, x, y, x, y, x, y);