diff options
Diffstat (limited to 'nqasm.c')
-rw-r--r-- | nqasm.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#include <stdio.h> + +#include "mnemonics.h" +#include "nqasm.h" + +#include "lexer.h" +#include "parser.h" + +void add_instruction(const struct instruction *i) +{ + const struct mnemonic *m = &mnemonics[i->mnem]; + printf("%04x\n", m->bits); +} + +int main(int argc, char **argv) +{ + yyparse(); + return 0; +} + |