summaryrefslogtreecommitdiff
path: root/nqasm.c
blob: a42f8f47076e30143ab9128deb51de92796308cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}