aboutsummaryrefslogtreecommitdiff
path: root/minias.h
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-11 02:59:49 +1300
committerAndrew Chambers <[email protected]>2021-10-11 02:59:49 +1300
commit37540ce4b89c3f9dfc6184ce3cf9ed18866b6266 (patch)
tree9d6fc8880f94edcd64d5a80abe73ac48178dd0ff /minias.h
parent08dc724999e2d5616dc652a0d0d05b6edeecee02 (diff)
Add sib addressing.
Diffstat (limited to 'minias.h')
-rw-r--r--minias.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/minias.h b/minias.h
index 02b2b77..abf1f06 100644
--- a/minias.h
+++ b/minias.h
@@ -161,6 +161,7 @@ typedef enum {
/* RIP is in a special class of its own. */
ASM_RIP,
+ ASM_NO_REG,
ASM_REG_END,
} AsmKind;
@@ -213,7 +214,9 @@ typedef struct {
typedef struct {
AsmKind kind;
- AsmKind reg;
+ AsmKind base;
+ AsmKind index;
+ uint8_t scale;
const char *l; /* label */
int64_t c; /* constant */
} Memarg;