32x: change ppc handling for better logging

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@791 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-09-23 21:32:20 +00:00
parent db1d3564e6
commit a44737c187
2 changed files with 6 additions and 3 deletions

View file

@ -71,15 +71,18 @@ int sh2_execute(SH2 *sh2_, int cycles)
if (sh2->delay)
{
sh2->ppc = sh2->delay;
opcode = RW(sh2->delay);
sh2->pc -= 2;
}
else
{
sh2->ppc = sh2->pc;
opcode = RW(sh2->pc);
}
sh2->delay = 0;
sh2->pc += 2;
sh2->ppc = sh2->pc;
switch (opcode & ( 15 << 12))
{