Remove unnecessarily duplicated code in ARMStep

This commit is contained in:
Jeffrey Pfau 2014-08-29 01:41:32 -07:00
parent 4d2ccd5df4
commit 6cff3d423e
1 changed files with 1 additions and 5 deletions

View File

@ -176,11 +176,7 @@ static inline void ARMStep(struct ARMCore* cpu) {
cpu->gprs[ARM_PC] += WORD_SIZE_ARM; cpu->gprs[ARM_PC] += WORD_SIZE_ARM;
unsigned condition = opcode >> 28; unsigned condition = opcode >> 28;
if (condition == 0xE) { if (condition != 0xE) {
ARMInstruction instruction = _armTable[((opcode >> 16) & 0xFF0) | ((opcode >> 4) & 0x00F)];
instruction(cpu, opcode);
return;
} else {
switch (condition) { switch (condition) {
case 0x0: case 0x0:
if (!ARM_COND_EQ) { if (!ARM_COND_EQ) {