summaryrefslogtreecommitdiff
path: root/68kinst.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-10-12 19:03:05 -0700
committerMichael Pavone <pavone@retrodev.com>2014-10-12 19:03:05 -0700
commit92486a76659f4acd7995d31b11a6bc6cc8621939 (patch)
treee9eecbddf74a2982559dcabce2fe047edebdb163 /68kinst.h
parent821106e3e1946d0016f02cfeaf4f2c3ca7200ddb (diff)
Add support for 68020 bitfield instructions
Diffstat (limited to '68kinst.h')
-rw-r--r--68kinst.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/68kinst.h b/68kinst.h
index 3441737..0529ad8 100644
--- a/68kinst.h
+++ b/68kinst.h
@@ -186,6 +186,9 @@ typedef enum {
MODE_IMMEDIATE_WORD,//used to indicate an immediate operand that only uses a single extension word even for a long operation
MODE_UNUSED
} m68k_addr_modes;
+#ifdef M68020
+#define M68K_FLAG_BITFIELD 0x80
+#endif
typedef enum {
COND_TRUE,
@@ -233,7 +236,10 @@ typedef enum {
#endif
typedef struct {
- uint8_t addr_mode;
+#ifdef M68020
+ uint16_t bitfield;
+#endif
+ uint8_t addr_mode;
union {
struct {
uint8_t pri;