mirror of
https://github.com/holub/mame
synced 2025-05-10 08:12:13 +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;
|
||||
case 0xed:
|
||||
d = &mnemonic_ed[opcodes.r8(pos++)];
|
||||
if (d->mnemonic == zDB)
|
||||
pos--;
|
||||
break;
|
||||
case 0xdd:
|
||||
{
|
||||
@ -428,7 +430,11 @@ offs_t z80_disassembler::disassemble(std::ostream &stream, offs_t pc, const data
|
||||
d = &mnemonic_xx_cb[op1];
|
||||
}
|
||||
else
|
||||
{
|
||||
d = &mnemonic_xx[op1];
|
||||
if (d->mnemonic == zDB)
|
||||
pos--;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 0xfd:
|
||||
@ -442,7 +448,11 @@ offs_t z80_disassembler::disassemble(std::ostream &stream, offs_t pc, const data
|
||||
d = &mnemonic_xx_cb[op1];
|
||||
}
|
||||
else
|
||||
{
|
||||
d = &mnemonic_xx[op1];
|
||||
if (d->mnemonic == zDB)
|
||||
pos--;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user