mirror of
https://github.com/holub/mame
synced 2025-05-22 05:38:52 +03:00
SH2: fix interpreter, runs fine again
This commit is contained in:
parent
f3d7e01371
commit
caff2ee187
@ -2237,11 +2237,11 @@ static CPU_EXECUTE( sh2 )
|
|||||||
|
|
||||||
if (sh2->delay)
|
if (sh2->delay)
|
||||||
{
|
{
|
||||||
opcode = memory_decrypted_read_word(sh2->program, WORD_XOR_BE((UINT32)(sh2->delay & AM)));
|
opcode = sh2->program->read_word(((UINT32)(sh2->delay & AM)));
|
||||||
sh2->pc -= 2;
|
sh2->pc -= 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
opcode = memory_decrypted_read_word(sh2->program, WORD_XOR_BE((UINT32)(sh2->pc & AM)));
|
opcode = sh2->program->read_word(((UINT32)(sh2->pc & AM)));
|
||||||
|
|
||||||
debugger_instruction_hook(device, sh2->pc);
|
debugger_instruction_hook(device, sh2->pc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user