summaryrefslogtreecommitdiff
path: root/nqasm.h
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-14 14:44:18 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-15 23:19:04 -0600
commit50e67fb3e640a9e6e1260ca984582c9a9b8d5375 (patch)
treed4d12ed5a5787e30e1062ced1edc6c7979afe77e /nqasm.h
parenta743db94541bebafff23c8a490dbce3f55d69712 (diff)
nqasm: Handle register and register indirect arguments
Diffstat (limited to 'nqasm.h')
-rw-r--r--nqasm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/nqasm.h b/nqasm.h
index 3712849..d25911b 100644
--- a/nqasm.h
+++ b/nqasm.h
@@ -1,8 +1,19 @@
#ifndef NQ_NQASM_H
#define NQ_NQASM_H
+struct argument {
+ union {
+ int value;
+ };
+};
+
+struct arguments {
+ struct argument args[3];
+};
+
struct instruction {
int mnem;
+ struct arguments args;
};
void add_instruction(const struct instruction *);