summaryrefslogtreecommitdiff
path: root/gen_x86.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-02-19 00:22:27 -0800
committerMichael Pavone <pavone@retrodev.com>2014-02-19 00:22:27 -0800
commit9383ce79b4f1f006cb1a7f62f1fcc8016e31ad04 (patch)
tree8a70506e352fc1915ac630debeab3a03f5b55024 /gen_x86.h
parent33910344b7546f27baba85921c0c7bdd70b1b0a9 (diff)
Apart from the Z80 core, BlastEm now supports 32-bit x86
Diffstat (limited to 'gen_x86.h')
-rw-r--r--gen_x86.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gen_x86.h b/gen_x86.h
index 83983f6..a74f3cd 100644
--- a/gen_x86.h
+++ b/gen_x86.h
@@ -57,6 +57,12 @@ enum {
SZ_Q
} x86_size;
+#ifdef X86_64
+#define SZ_PTR SZ_Q
+#else
+#define SZ_PTR SZ_D
+#endif
+
enum {
MODE_REG_INDIRECT = 0,
MODE_REG_INDEXED = 4,