all repos — mgba @ 17cfee015d3d0c60128244551791d6f6b0c91fed

mGBA Game Boy Advance Emulator

GBA: Ignore invalid opcodes used by the Wii U VC emulator (fixes #471)
Vicki Pfau vi@endrift.com
Mon, 13 Feb 2017 14:14:26 -0800
commit

17cfee015d3d0c60128244551791d6f6b0c91fed

parent

36553b89d0cb70174da4d386565892c288a0e6f6

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -70,6 +70,7 @@ - Util: Add 8-bit PNG write support

- Qt: Rename "Resample video" option to "Bilinear filtering" - GBA Video: Optimize when BLD* registers are written frequently - Core: Cores can now have multiple sets of callbacks + - GBA: Ignore invalid opcodes used by the Wii U VC emulator 0.5.2: (2016-12-31) Bugfixes:
M src/gba/gba.csrc/gba/gba.c

@@ -577,6 +577,10 @@ if (!gba->yankedRomSize) {

// TODO: More sensible category? mLOG(GBA, WARN, "Illegal opcode: %08x", opcode); } + if (cpu->executionMode == MODE_THUMB && (opcode & 0xFFC0) == 0xE800) { + mLOG(GBA, DEBUG, "Hit Wii U VC opcode: %08x", opcode); + return; + } #ifdef USE_DEBUGGERS if (gba->debugger) { struct mDebuggerEntryInfo info = {