Remove redundant checks that are in the BIOS code already

This commit is contained in:
Jeffrey Pfau 2014-07-05 01:03:04 -07:00
parent dea143829a
commit 34145543f2
1 changed files with 0 additions and 7 deletions

View File

@ -118,16 +118,9 @@ void GBASwi16(struct ARMCore* cpu, int immediate) {
break;
case 0x05:
// VBlankIntrWait
cpu->gprs[0] = 1;
cpu->gprs[1] = 1;
// Fall through:
case 0x04:
// IntrWait
gba->memory.io[REG_IME >> 1] = 1;
if (!cpu->gprs[0] && gba->memory.io[REG_IF >> 1] & cpu->gprs[1]) {
break;
}
gba->memory.io[REG_IF >> 1] = 0;
ARMRaiseSWI(cpu);
break;
case 0x6: