Permalink
Browse files

GB I/O: DMA register is R/W

  • Loading branch information...
endrift committed Jun 28, 2018
1 parent c2490af commit 80472c9f3a0b39dde23c893010e9b253403e08cb
Showing with 3 additions and 3 deletions.
  1. +1 −0 CHANGES
  2. +2 −3 src/gb/io.c
View
@@ -39,6 +39,7 @@ Bugfixes:
- GBA Serialize: Fix loading channel 3 volume (fixes mgba.io/i/1107)
- GBA SIO: Fix unconnected SIOCNT for multi mode (fixes mgba.io/i/1105)
- GBA BIOS: Fix BitUnPack final byte
+ - GB I/O: DMA register is R/W
Misc:
- GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
View
@@ -190,6 +190,7 @@ void GBIOReset(struct GB* gb) {
GBIOWrite(gb, REG_SCY, 0x00);
GBIOWrite(gb, REG_SCX, 0x00);
GBIOWrite(gb, REG_LYC, 0x00);
+ GBIOWrite(gb, REG_DMA, 0xFF);
GBIOWrite(gb, REG_BGP, 0xFC);
if (gb->model < GB_MODEL_CGB) {
GBIOWrite(gb, REG_OBP0, 0xFF);
@@ -618,6 +619,7 @@ uint8_t GBIORead(struct GB* gb, unsigned address) {
case REG_SCX:
case REG_LY:
case REG_LYC:
+ case REG_DMA:
case REG_BGP:
case REG_OBP0:
case REG_OBP1:
@@ -642,9 +644,6 @@ uint8_t GBIORead(struct GB* gb, unsigned address) {
case REG_SVBK:
// Handled transparently by the registers
goto success;
- case REG_DMA:
- mLOG(GB_IO, STUB, "Reading from unknown register FF%02X", address);
- return 0;
default:
break;
}

0 comments on commit 80472c9

Please sign in to comment.