Permalink
Browse files

DS: Set boot complete bit in RAM on boot (fixes #576, #580, #586)

  • Loading branch information...
endrift committed Apr 9, 2017
1 parent 2a968d2 commit b65cc6d97dc8594894ae073c9cb3c07530c0dfe3
Showing with 5 additions and 0 deletions.
  1. +4 −0 CHANGES
  2. +1 −0 src/ds/ds.c
View
@@ -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
View
@@ -301,6 +301,7 @@ void DS7Reset(struct ARMCore* cpu) {
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

0 comments on commit b65cc6d

Please sign in to comment.