notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4c0720
)
sh2: timing fixes
author
notaz
<notasas@gmail.com>
Fri, 12 Jul 2013 23:52:53 +0000
(
02:52
+0300)
committer
notaz
<notasas@gmail.com>
Sat, 13 Jul 2013 16:27:16 +0000
(19:27 +0300)
cpu/sh2/mame/sh2.c
patch
|
blob
|
blame
|
history
diff --git
a/cpu/sh2/mame/sh2.c
b/cpu/sh2/mame/sh2.c
index
158d42c
..
0010a69
100644
(file)
--- a/
cpu/sh2/mame/sh2.c
+++ b/
cpu/sh2/mame/sh2.c
@@
-859,6
+859,7
@@
INLINE void JMP(sh2_state *sh2, UINT32 m)
{
\r
sh2->delay = sh2->pc;
\r
sh2->pc = sh2->ea = sh2->r[m];
\r
+ sh2->icount--;
\r
}
\r
\r
/* JSR @Rm */
\r
@@
-1422,7
+1423,6
@@
INLINE void OR(sh2_state *sh2, UINT32 m, UINT32 n)
INLINE void ORI(sh2_state *sh2, UINT32 i)
\r
{
\r
sh2->r[0] |= i;
\r
- sh2->icount -= 2;
\r
}
\r
\r
/* OR.B #imm,@(R0,GBR) */
\r
@@
-1434,6
+1434,7
@@
INLINE void ORM(sh2_state *sh2, UINT32 i)
temp = RB( sh2, sh2->ea );
\r
temp |= i;
\r
WB( sh2, sh2->ea, temp );
\r
+ sh2->icount -= 2;
\r
}
\r
\r
/* ROTCL Rn */
\r