summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-08 00:30:48 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-08 00:30:48 -0800
commit032299a2eb96ab2e9b23248090b0653f77edb49b (patch)
tree7ea0f6c025b9222f6ec5c6c1fb53025abfc9c5c4
parent22d636328c720702ad13af4ee73a4aeed0cbbab1 (diff)
Fix decoding of undocumented Z80 instruction out (c), 0
-rw-r--r--z80inst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/z80inst.c b/z80inst.c
index 6d00736..d0588f2 100644
--- a/z80inst.c
+++ b/z80inst.c
@@ -1293,7 +1293,7 @@ uint8_t * z80_decode(uint8_t * istream, z80inst * decoded)
decoded->immed |= *(++istream) << 8;
}
}
- if (decoded->reg == Z80_USE_IMMED && decoded->op != Z80_BIT && decoded->op != Z80_RES && decoded->op != Z80_SET) {
+ if (decoded->reg == Z80_USE_IMMED && decoded->op != Z80_BIT && decoded->op != Z80_RES && decoded->op != Z80_SET && decoded->op != Z80_OUT) {
decoded->immed = *(++istream);
}
return istream+1;