mirror of https://github.com/mgba-emu/mgba.git
Remove redundant checks that are in the BIOS code already
This commit is contained in:
parent
dea143829a
commit
34145543f2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue