all repos — mgba @ 8891abaca842dab75858c52a9c13feb20c0bfc51

mGBA Game Boy Advance Emulator

GBA: Add initial I/O register settings for background matrix registers
Jeffrey Pfau jeffrey@endrift.com
Tue, 14 Apr 2015 20:45:44 -0700
commit

8891abaca842dab75858c52a9c13feb20c0bfc51

parent

ae41898206c5951c591f51791352f9a60257287f

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -10,6 +10,7 @@ - GBA Memory: Ensure changing the timing of a DMA reschedules it

- Qt: Fix window not regaining focus after exiting savestate window - Qt: Fix regression where video would not record if the game had already started - GBA: Fix rewind boundary conditions + - GBA: Add initial I/O register settings for background matrix registers Misc: - Qt: Show multiplayer numbers in window title
M src/gba/io.csrc/gba/io.c

@@ -286,6 +286,10 @@ gba->memory.io[REG_DISPCNT >> 1] = 0x0080;

gba->memory.io[REG_RCNT >> 1] = RCNT_INITIAL; gba->memory.io[REG_KEYINPUT >> 1] = 0x3FF; gba->memory.io[REG_SOUNDBIAS >> 1] = 0x200; + gba->memory.io[REG_BG2PA >> 1] = 0x100; + gba->memory.io[REG_BG2PD >> 1] = 0x100; + gba->memory.io[REG_BG3PA >> 1] = 0x100; + gba->memory.io[REG_BG3PD >> 1] = 0x100; } void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {