all repos — mgba @ 20b2e8af7e266f01501a123692da07bedf574cdb

mGBA Game Boy Advance Emulator

GB: More logging
Jeffrey Pfau jeffrey@endrift.com
Tue, 26 Jan 2016 02:25:45 -0800
commit

20b2e8af7e266f01501a123692da07bedf574cdb

parent

c9d0f651b6ec387056d67f098fbb322924a99c04

2 files changed, 8 insertions(+), 2 deletions(-)

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

@@ -58,7 +58,9 @@ return;

case REG_TIMA: // ??? return; + case REG_JOYP: case REG_TMA: + case REG_LYC: // Handled transparently by the registers break; case REG_TAC:

@@ -93,7 +95,7 @@ gb->memory.ie = value;

GBUpdateIRQs(gb); return; default: - // TODO: Log + mLOG(GB_MBC, STUB, "Writing to unknown register FF%02X:%02X", address, value); if (address >= GB_SIZE_IO) { return; }

@@ -130,11 +132,13 @@ case REG_DIV:

case REG_TIMA: case REG_TMA: case REG_TAC: + case REG_LCDC: case REG_LY: + case REG_LYC: // Handled transparently by the registers break; default: - // TODO: Log + mLOG(GB_MBC, STUB, "Reading from unknown register FF%02X", address); if (address >= GB_SIZE_IO) { return 0; }
M src/gb/memory.csrc/gb/memory.c

@@ -374,6 +374,8 @@ break;

case 0x2: if (value < 4) { _switchSramBank(memory, value); + } else { + mLOG(GB_MBC, STUB, "MBC3 RTC unimplemented", value); } break; }