one more missing optimization

This commit is contained in:
thrust26 2019-02-23 19:02:25 +01:00
parent b32d3eba49
commit d188b5024f
1 changed files with 5 additions and 1 deletions

View File

@ -843,10 +843,14 @@ int Thumbulator::execute()
#endif
Op decodedOp;
#ifndef UNSAFE_OPTIMIZATIONS
if ((instructionPtr & 0xF0000000) == 0 && instructionPtr < romSize)
decodedOp = decodedRom[instructionPtr / 2];
decodedOp = decodedRom[instructionPtr >> 1];
else
decodedOp = decodeInstructionWord(inst);
#else
decodedOp = decodedRom[instructionPtr >> 1];
#endif
switch (decodedOp) {
//ADC