all repos — mgba @ d456d6ff3c858376933c3b2198132c6f7c2ed23d

mGBA Game Boy Advance Emulator

GB Memory: More logging
Jeffrey Pfau jeffrey@endrift.com
Tue, 26 Jan 2016 23:55:38 -0800
commit

d456d6ff3c858376933c3b2198132c6f7c2ed23d

parent

7540bd351312159c239f3211e93d6e4518c1f3ab

1 files changed, 12 insertions(+), 1 deletions(-)

jump to
M src/gb/memory.csrc/gb/memory.c

@@ -342,6 +342,10 @@ ++bank;

} _switchBank(memory, bank | (memory->currentBank & 0x60)); break; + default: + // TODO + mLOG(GB_MBC, STUB, "MBC1 unknown address: %04X:%02X", address, value); + break; } }

@@ -380,6 +384,10 @@ } else {

mLOG(GB_MBC, STUB, "MBC3 RTC unimplemented", value); } break; + default: + // TODO + mLOG(GB_MBC, STUB, "MBC3 unknown address: %04X:%02X", address, value); + break; } }

@@ -406,9 +414,12 @@ mLOG(GB_MBC, STUB, "MBC5 unknown value %02X", value);

break; } break; - break; case 0x1: _switchBank(memory, bank); + break; + default: + // TODO + mLOG(GB_MBC, STUB, "MBC5 unknown address: %04X:%02X", address, value); break; } }