diff options
Diffstat (limited to 'src/emu/memory.c')
-rw-r--r-- | src/emu/memory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/memory.c b/src/emu/memory.c index d8fdee22a21..826ea4496d4 100644 --- a/src/emu/memory.c +++ b/src/emu/memory.c @@ -595,6 +595,12 @@ void memory_set_opbase(offs_t pc) entry = space->readlookup[LEVEL1_INDEX(pc)]; if (entry >= SUBTABLE_BASE) entry = space->readlookup[LEVEL2_INDEX(entry,pc)]; + + /* if this entry if the current one, no need to go further */ + if (entry == opcode_entry) + return; + + /* keep track of current entry */ opcode_entry = entry; /* if we don't map to a bank, see if there are any banks we can map to */ |