all repos — mgba @ 34145543f248188cf4ae5834931a31ab56ac798c

mGBA Game Boy Advance Emulator

Remove redundant checks that are in the BIOS code already
Jeffrey Pfau jeffrey@endrift.com
Sat, 05 Jul 2014 01:03:04 -0700
commit

34145543f248188cf4ae5834931a31ab56ac798c

parent

dea143829a6e45633f1a70702ad40584130e17b1

1 files changed, 0 insertions(+), 7 deletions(-)

jump to
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -118,16 +118,9 @@ GBAHalt(gba);

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: