Skip to content

Commit f23efe5

Browse files
committed
Drop leading headers and footers in C output
1 parent 4d6566d commit f23efe5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

main.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,6 @@ int main(int argc, char **argv) {
191191

192192
fseek(context.rom, (context.page+1)*PAGE_SIZE - 3, SEEK_SET);
193193

194-
if (context.c_headers) {
195-
printf("#ifndef __JUMPTABLE_H\n#define __JUMPTABLE_H\n\n");
196-
printf("#define PCALL(ADDRESS) \\\n"
197-
"\t.if ADDRESS & 0xFF \\ \\\n"
198-
"\t\trst 0x20 \\ \\\n"
199-
"\t\t.dw ADDRESS \\ \\\n"
200-
"\t.else \\ \\\n"
201-
"\t\tcall 0x4000 - (((ADDRESS >> 8) + 1) * 3) \\ \\\n"
202-
"\t.endif\n\n");
203-
}
204-
205194
for (ent = context.symbols; ent; ent = ent->next) {
206195
fputc(0xC3, context.rom);
207196
fputc(ent->address & 0xff, context.rom);
@@ -214,10 +203,6 @@ int main(int argc, char **argv) {
214203
}
215204
}
216205

217-
if (context.c_headers) {
218-
printf("\n#endif");
219-
}
220-
221206
fclose(context.rom);
222207

223208
return 0;

0 commit comments

Comments
 (0)