32x: some missed code from MAME, minor tweaks

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@784 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-09-18 15:18:10 +00:00
parent 266c6afa84
commit 3cf9570bac
2 changed files with 19 additions and 5 deletions

View file

@ -69,7 +69,13 @@ int sh2_execute(SH2 *sh2_, int cycles)
{
UINT32 opcode;
opcode = RW(sh2->pc);
if (sh2->delay)
{
opcode = RW(sh2->delay);
sh2->pc -= 2;
}
else
opcode = RW(sh2->pc);
sh2->delay = 0;
sh2->pc += 2;