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
2 files changed,
5 insertions(+),
0 deletions(-)
M
src/ds/ds.c
→
src/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