GB: More logging

This commit is contained in:
Jeffrey Pfau 2016-01-26 02:25:45 -08:00
parent c9d0f651b6
commit 20b2e8af7e
2 changed files with 8 additions and 2 deletions

View File

@ -58,7 +58,9 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) {
case REG_TIMA: case REG_TIMA:
// ??? // ???
return; return;
case REG_JOYP:
case REG_TMA: case REG_TMA:
case REG_LYC:
// Handled transparently by the registers // Handled transparently by the registers
break; break;
case REG_TAC: case REG_TAC:
@ -93,7 +95,7 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) {
GBUpdateIRQs(gb); GBUpdateIRQs(gb);
return; return;
default: default:
// TODO: Log mLOG(GB_MBC, STUB, "Writing to unknown register FF%02X:%02X", address, value);
if (address >= GB_SIZE_IO) { if (address >= GB_SIZE_IO) {
return; return;
} }
@ -130,11 +132,13 @@ uint8_t GBIORead(struct GB* gb, unsigned address) {
case REG_TIMA: case REG_TIMA:
case REG_TMA: case REG_TMA:
case REG_TAC: case REG_TAC:
case REG_LCDC:
case REG_LY: case REG_LY:
case REG_LYC:
// Handled transparently by the registers // Handled transparently by the registers
break; break;
default: default:
// TODO: Log mLOG(GB_MBC, STUB, "Reading from unknown register FF%02X", address);
if (address >= GB_SIZE_IO) { if (address >= GB_SIZE_IO) {
return 0; return 0;
} }

View File

@ -374,6 +374,8 @@ void _GBMBC3(struct GBMemory* memory, uint16_t address, uint8_t value) {
case 0x2: case 0x2:
if (value < 4) { if (value < 4) {
_switchSramBank(memory, value); _switchSramBank(memory, value);
} else {
mLOG(GB_MBC, STUB, "MBC3 RTC unimplemented", value);
} }
break; break;
} }