# HG changeset patch # User Michael Pavone # Date 1483864248 28800 # Node ID 8519b54f9413580e684795e280ce5312b8cfe109 # Parent 6854ab93d182ee54382d913f3fbf51214734d4ec Fix decoding of undocumented Z80 instruction out (c), 0 diff -r 6854ab93d182 -r 8519b54f9413 z80inst.c --- a/z80inst.c Sat Jan 07 16:28:29 2017 -0800 +++ b/z80inst.c Sun Jan 08 00:30:48 2017 -0800 @@ -1293,7 +1293,7 @@ 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;