mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Illegal opcode is the start of the undefined address
This commit is contained in:
parent
f003637265
commit
4e80fcf1c5
@ -848,11 +848,11 @@ INLINE void EXTUW(sh2_state *sh2, UINT32 m, UINT32 n)
|
||||
/* ILLEGAL */
|
||||
INLINE void ILLEGAL(sh2_state *sh2)
|
||||
{
|
||||
logerror("SH2.%s: Illegal opcode at %08x\n", sh2->device->tag(), sh2->pc);
|
||||
logerror("SH2.%s: Illegal opcode at %08x\n", sh2->device->tag(), sh2->pc - 2);
|
||||
sh2->r[15] -= 4;
|
||||
WL( sh2, sh2->r[15], sh2->sr ); /* push SR onto stack */
|
||||
sh2->r[15] -= 4;
|
||||
WL( sh2, sh2->r[15], sh2->pc ); /* push PC onto stack */
|
||||
WL( sh2, sh2->r[15], sh2->pc - 2 ); /* push PC onto stack */
|
||||
|
||||
/* fetch PC */
|
||||
sh2->pc = RL( sh2, sh2->vbr + 4 * 4 );
|
||||
|
Loading…
Reference in New Issue
Block a user