diff --git a/src/emulation.awk b/src/emulation.awk new file mode 100644 index 0000000..c351d95 --- /dev/null +++ b/src/emulation.awk @@ -0,0 +1,19 @@ +BEGIN { + FS="," + print "#ifndef _EMULATION_H_" + print "#define _EMULATION_H_" +} + +/^OP_/{ + if ($5 != "NULL") { + emuls[$5] = $5 + } +} + +END { + for (i in emuls) + printf "void %s(rk65c02emu_t *, instruction_t *)\n",i + + print "#endif /* _EMULATION_H_ */" +} +