mirror of https://github.com/stella-emu/stella.git
one more missing optimization
This commit is contained in:
parent
b32d3eba49
commit
d188b5024f
|
@ -843,10 +843,14 @@ int Thumbulator::execute()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Op decodedOp;
|
Op decodedOp;
|
||||||
|
#ifndef UNSAFE_OPTIMIZATIONS
|
||||||
if ((instructionPtr & 0xF0000000) == 0 && instructionPtr < romSize)
|
if ((instructionPtr & 0xF0000000) == 0 && instructionPtr < romSize)
|
||||||
decodedOp = decodedRom[instructionPtr / 2];
|
decodedOp = decodedRom[instructionPtr >> 1];
|
||||||
else
|
else
|
||||||
decodedOp = decodeInstructionWord(inst);
|
decodedOp = decodeInstructionWord(inst);
|
||||||
|
#else
|
||||||
|
decodedOp = decodedRom[instructionPtr >> 1];
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (decodedOp) {
|
switch (decodedOp) {
|
||||||
//ADC
|
//ADC
|
||||||
|
|
Loading…
Reference in New Issue