mirror of
https://github.com/holub/mame
synced 2025-05-10 16:21:42 +03:00
fix disassembly when $ed, $dd & $fd prefixes are used but the instruction is not valid. [smf]
This commit is contained in:
parent
32156813c0
commit
05e59cf6aa
@ -416,6 +416,8 @@ offs_t z80_disassembler::disassemble(std::ostream &stream, offs_t pc, const data
|
|||||||
break;
|
break;
|
||||||
case 0xed:
|
case 0xed:
|
||||||
d = &mnemonic_ed[opcodes.r8(pos++)];
|
d = &mnemonic_ed[opcodes.r8(pos++)];
|
||||||
|
if (d->mnemonic == zDB)
|
||||||
|
pos--;
|
||||||
break;
|
break;
|
||||||
case 0xdd:
|
case 0xdd:
|
||||||
{
|
{
|
||||||
@ -428,7 +430,11 @@ offs_t z80_disassembler::disassemble(std::ostream &stream, offs_t pc, const data
|
|||||||
d = &mnemonic_xx_cb[op1];
|
d = &mnemonic_xx_cb[op1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
d = &mnemonic_xx[op1];
|
d = &mnemonic_xx[op1];
|
||||||
|
if (d->mnemonic == zDB)
|
||||||
|
pos--;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xfd:
|
case 0xfd:
|
||||||
@ -442,7 +448,11 @@ offs_t z80_disassembler::disassemble(std::ostream &stream, offs_t pc, const data
|
|||||||
d = &mnemonic_xx_cb[op1];
|
d = &mnemonic_xx_cb[op1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
d = &mnemonic_xx[op1];
|
d = &mnemonic_xx[op1];
|
||||||
|
if (d->mnemonic == zDB)
|
||||||
|
pos--;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user