diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-14 14:44:18 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-15 23:19:04 -0600 |
commit | 50e67fb3e640a9e6e1260ca984582c9a9b8d5375 (patch) | |
tree | d4d12ed5a5787e30e1062ced1edc6c7979afe77e /nqasm.h | |
parent | a743db94541bebafff23c8a490dbce3f55d69712 (diff) |
nqasm: Handle register and register indirect arguments
Diffstat (limited to 'nqasm.h')
-rw-r--r-- | nqasm.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 *); |