commit | 6c61a798f44c756010d708ecb3caf6ca7443b22d | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Tue Jul 28 16:29:20 2020 -0700 |
committer | swissChili <swisschili@fastmail.com> | Tue Jul 28 16:29:20 2020 -0700 |
tree | fb4ad42156500ee2f29ed52f5ad5d3cb1732a7b4 |
Add disassembler
diff --git a/csv2h.awk b/csv2h.awk new file mode 100755 index 0000000..f98ba9e --- /dev/null +++ b/csv2h.awk
@@ -0,0 +1,10 @@ +BEGIN { + FS = "," + print "#pragma once\n" + print "// AUTO GENERATED FILE, DO NOT EDIT BY HAND" + print "#define INSTRUCTIONS \\" +} + +/0x.+/ { + print " INST(" $2 ", AM_" $3 ", " $1" ) \\" +}