Mercurial > repos > blastem
comparison z80inst.c @ 1159:8519b54f9413
Fix decoding of undocumented Z80 instruction out (c), 0
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 08 Jan 2017 00:30:48 -0800 |
parents | 1625555e346e |
children | e29ff59192ce |
comparison
equal
deleted
inserted
replaced
1158:6854ab93d182 | 1159:8519b54f9413 |
---|---|
1291 decoded->immed = *(++istream); | 1291 decoded->immed = *(++istream); |
1292 if (decoded->op != Z80_OUT && decoded->op != Z80_IN) { | 1292 if (decoded->op != Z80_OUT && decoded->op != Z80_IN) { |
1293 decoded->immed |= *(++istream) << 8; | 1293 decoded->immed |= *(++istream) << 8; |
1294 } | 1294 } |
1295 } | 1295 } |
1296 if (decoded->reg == Z80_USE_IMMED && decoded->op != Z80_BIT && decoded->op != Z80_RES && decoded->op != Z80_SET) { | 1296 if (decoded->reg == Z80_USE_IMMED && decoded->op != Z80_BIT && decoded->op != Z80_RES && decoded->op != Z80_SET && decoded->op != Z80_OUT) { |
1297 decoded->immed = *(++istream); | 1297 decoded->immed = *(++istream); |
1298 } | 1298 } |
1299 return istream+1; | 1299 return istream+1; |
1300 } | 1300 } |
1301 | 1301 |