Fix Wii U VC opcodes

Fix Wii U VC opcodes
This commit is contained in:
Andy Vandijck 2025-07-24 13:06:09 +02:00
parent 34cba3bb2c
commit 8ce4848dd6
2 changed files with 12 additions and 0 deletions

View File

@ -26,6 +26,12 @@ static int clockTicks;
static INSN_REGPARM void armUnknownInsn(uint32_t opcode) static INSN_REGPARM void armUnknownInsn(uint32_t opcode)
{ {
if ((opcode & 0xFFC00000) == 0xEE800000) {
if (systemVerbose & VERBOSE_UNDEFINED) {
log("Hit Wii U VC opcode: %08x", opcode);
}
return;
}
#ifdef GBA_LOGGING #ifdef GBA_LOGGING
if (systemVerbose & VERBOSE_UNDEFINED) { if (systemVerbose & VERBOSE_UNDEFINED) {
log("Undefined ARM instruction %08x at %08x\n", opcode, log("Undefined ARM instruction %08x at %08x\n", opcode,

View File

@ -33,6 +33,12 @@ static int clockTicks;
static INSN_REGPARM void thumbUnknownInsn(uint32_t opcode) static INSN_REGPARM void thumbUnknownInsn(uint32_t opcode)
{ {
if ((opcode & 0xFFC0) == 0xE800) {
if (systemVerbose & VERBOSE_UNDEFINED) {
log("Hit Wii U VC opcode: %08x", opcode);
}
return;
}
#ifdef GBA_LOGGING #ifdef GBA_LOGGING
if (systemVerbose & VERBOSE_UNDEFINED) if (systemVerbose & VERBOSE_UNDEFINED)
log("Undefined THUMB instruction %04x at %08x\n", opcode, armNextPC - 2); log("Undefined THUMB instruction %04x at %08x\n", opcode, armNextPC - 2);