all repos — mgba @ b65cc6d97dc8594894ae073c9cb3c07530c0dfe3

mGBA Game Boy Advance Emulator

DS: Set boot complete bit in RAM on boot (fixes #576, #580, #586)
Vicki Pfau vi@endrift.com
Sun, 09 Apr 2017 14:39:35 -0700
commit

b65cc6d97dc8594894ae073c9cb3c07530c0dfe3

parent

2a968d2512e60800da07c0e874d144811d65a1bb

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

jump to
M CHANGESCHANGES

@@ -1,3 +1,7 @@

+medusa alpha 2: (Future) +Misc: + - DS: Set boot complete bit in RAM on boot (fixes mgba.io/i/576, mgba.io/i/580, mgba.io/i/586) + 0.6.0: (Future) Features: - GBA: Support printing debug strings from inside a game
M src/ds/ds.csrc/ds/ds.c

@@ -301,6 +301,7 @@ memcpy(&ds->memory.ram[0x3FF800 >> 2], DS_CHIP_ID, 4);

memcpy(&ds->memory.ram[0x3FF804 >> 2], DS_CHIP_ID, 4); memcpy(&ds->memory.ram[0x3FFC00 >> 2], DS_CHIP_ID, 4); memcpy(&ds->memory.ram[0x3FFC04 >> 2], DS_CHIP_ID, 4); + ds->memory.ram[0x3FFC40 >> 2] = 1; memcpy(&ds->memory.ram[0x3FFE00 >> 2], header, 0x170); DS7IOWrite32(ds, DS_REG_ROMCNT_LO, header->busTiming | 0x2700000); // TODO: Error check