notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
32x: implement VDP fill, improve PWM, division unit and scheduling
[picodrive.git]
/
cpu
/
sh2mame
/
sh2pico.c
diff --git
a/cpu/sh2mame/sh2pico.c
b/cpu/sh2mame/sh2pico.c
index
414985c
..
463261e
100644
(file)
--- a/
cpu/sh2mame/sh2pico.c
+++ b/
cpu/sh2mame/sh2pico.c
@@
-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))
{