summaryrefslogtreecommitdiff
path: root/z80inst.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-07-25 23:16:04 -0700
committerMichael Pavone <pavone@retrodev.com>2016-07-25 23:16:04 -0700
commit4d13f43d2c6f07b7beb6ea358d8e10952a7b3734 (patch)
tree91af788b3da191fd08426501f0a96237a9e93df5 /z80inst.h
parent4102d6f4ac26bcdb4b2186d5e086edef1507654f (diff)
Properly handle redundant prefixes
Diffstat (limited to 'z80inst.h')
-rw-r--r--z80inst.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/z80inst.h b/z80inst.h
index f2d7566..a5ad409 100644
--- a/z80inst.h
+++ b/z80inst.h
@@ -76,7 +76,8 @@ enum {
Z80_OUTI,
Z80_OTIR,
Z80_OUTD,
- Z80_OTDR
+ Z80_OTDR,
+ Z80_USE_MAIN
};
enum {
@@ -133,6 +134,7 @@ typedef struct {
uint8_t addr_mode;
uint8_t ea_reg;
uint16_t immed;
+ uint16_t opcode_bytes;
} z80inst;
uint8_t * z80_decode(uint8_t * istream, z80inst * decoded);