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: some missed code from MAME, minor tweaks
[picodrive.git]
/
cpu
/
sh2mame
/
sh2pico.c
diff --git
a/cpu/sh2mame/sh2pico.c
b/cpu/sh2mame/sh2pico.c
index
c6f87ea
..
e77329c
100644
(file)
--- a/
cpu/sh2mame/sh2pico.c
+++ b/
cpu/sh2mame/sh2pico.c
@@
-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;