mirror of https://github.com/mgba-emu/mgba.git
GB: More logging
This commit is contained in:
parent
c9d0f651b6
commit
20b2e8af7e
|
@ -58,7 +58,9 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) {
|
|||
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 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t 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 @@ uint8_t GBIORead(struct GB* gb, unsigned address) {
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -374,6 +374,8 @@ void _GBMBC3(struct GBMemory* memory, uint16_t address, uint8_t value) {
|
|||
case 0x2:
|
||||
if (value < 4) {
|
||||
_switchSramBank(memory, value);
|
||||
} else {
|
||||
mLOG(GB_MBC, STUB, "MBC3 RTC unimplemented", value);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue