summaryrefslogtreecommitdiff
path: root/nqasm.h
blob: f2e036d1fd04f9a1e7d31a8fe4b1bfb8e2a61356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef NQ_NQASM_H
#define NQ_NQASM_H

#define ARG_INTEGER   0
#define ARG_LABEL     1

struct argument {
	int type;
	union {
		long value;
		char *label;
	};
};

struct arguments {
	struct argument args[3];
};

struct instruction {
	int mnem;
	struct arguments args;
};

void add_instruction(const struct instruction *);
void add_label(const char *);

#endif