From 032299a2eb96ab2e9b23248090b0653f77edb49b Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 8 Jan 2017 00:30:48 -0800 Subject: Fix decoding of undocumented Z80 instruction out (c), 0 --- z80inst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'z80inst.c') 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; -- cgit v1.2.3