GB: More logging
Jeffrey Pfau jeffrey@endrift.com
Tue, 26 Jan 2016 02:25:45 -0800
2 files changed,
8 insertions(+),
2 deletions(-)
M
src/gb/io.c
→
src/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.c
→
src/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; }