We really do want to write out characters, not ASCII values, here.
Chris Pressey
3 years ago
245 | 245 | { |
246 | 246 | case '0': case '1': case '2': case '3': case '4': |
247 | 247 | 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); | |
252 | 252 | break; |
253 | 253 | case '>': /* PC Right */ |
254 | 254 | fprintf(fo, ALL, x, y, x, y, x, y, x, y); |