all repos — mgba @ 6cff3d423e699d97d6d5723b0ad3736e3efffd9f

mGBA Game Boy Advance Emulator

Remove unnecessarily duplicated code in ARMStep
Jeffrey Pfau jeffrey@endrift.com
Fri, 29 Aug 2014 01:41:32 -0700
commit

6cff3d423e699d97d6d5723b0ad3736e3efffd9f

parent

4d2ccd5df438b988c21af6959c3704aec590a075

1 files changed, 1 insertions(+), 5 deletions(-)

jump to
M src/arm/arm.csrc/arm/arm.c

@@ -176,11 +176,7 @@ LOAD_32(cpu->prefetch, cpu->gprs[ARM_PC] & cpu->memory.activeMask, cpu->memory.activeRegion);

cpu->gprs[ARM_PC] += WORD_SIZE_ARM; unsigned condition = opcode >> 28; - if (condition == 0xE) { - ARMInstruction instruction = _armTable[((opcode >> 16) & 0xFF0) | ((opcode >> 4) & 0x00F)]; - instruction(cpu, opcode); - return; - } else { + if (condition != 0xE) { switch (condition) { case 0x0: if (!ARM_COND_EQ) {