mirror of https://github.com/mgba-emu/mgba.git
GB I/O: DMA register is R/W
This commit is contained in:
parent
c2490afe4f
commit
80472c9f3a
1
CHANGES
1
CHANGES
|
@ -39,6 +39,7 @@ Bugfixes:
|
||||||
- GBA Serialize: Fix loading channel 3 volume (fixes mgba.io/i/1107)
|
- 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 SIO: Fix unconnected SIOCNT for multi mode (fixes mgba.io/i/1105)
|
||||||
- GBA BIOS: Fix BitUnPack final byte
|
- GBA BIOS: Fix BitUnPack final byte
|
||||||
|
- GB I/O: DMA register is R/W
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Timer: Use global cycles for timers
|
- GBA Timer: Use global cycles for timers
|
||||||
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
||||||
|
|
|
@ -190,6 +190,7 @@ void GBIOReset(struct GB* gb) {
|
||||||
GBIOWrite(gb, REG_SCY, 0x00);
|
GBIOWrite(gb, REG_SCY, 0x00);
|
||||||
GBIOWrite(gb, REG_SCX, 0x00);
|
GBIOWrite(gb, REG_SCX, 0x00);
|
||||||
GBIOWrite(gb, REG_LYC, 0x00);
|
GBIOWrite(gb, REG_LYC, 0x00);
|
||||||
|
GBIOWrite(gb, REG_DMA, 0xFF);
|
||||||
GBIOWrite(gb, REG_BGP, 0xFC);
|
GBIOWrite(gb, REG_BGP, 0xFC);
|
||||||
if (gb->model < GB_MODEL_CGB) {
|
if (gb->model < GB_MODEL_CGB) {
|
||||||
GBIOWrite(gb, REG_OBP0, 0xFF);
|
GBIOWrite(gb, REG_OBP0, 0xFF);
|
||||||
|
@ -618,6 +619,7 @@ uint8_t GBIORead(struct GB* gb, unsigned address) {
|
||||||
case REG_SCX:
|
case REG_SCX:
|
||||||
case REG_LY:
|
case REG_LY:
|
||||||
case REG_LYC:
|
case REG_LYC:
|
||||||
|
case REG_DMA:
|
||||||
case REG_BGP:
|
case REG_BGP:
|
||||||
case REG_OBP0:
|
case REG_OBP0:
|
||||||
case REG_OBP1:
|
case REG_OBP1:
|
||||||
|
@ -642,9 +644,6 @@ uint8_t GBIORead(struct GB* gb, unsigned address) {
|
||||||
case REG_SVBK:
|
case REG_SVBK:
|
||||||
// Handled transparently by the registers
|
// Handled transparently by the registers
|
||||||
goto success;
|
goto success;
|
||||||
case REG_DMA:
|
|
||||||
mLOG(GB_IO, STUB, "Reading from unknown register FF%02X", address);
|
|
||||||
return 0;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue