Permalink
Browse files

DS I/O: Enable POWCNT1 bit 1 at boot (fixes #616)

  • Loading branch information...
endrift committed Jul 17, 2017
1 parent 7d360d6 commit e472ca5b6cd12de594c3d785240aa48b0b201c3f
Showing with 2 additions and 0 deletions.
  1. +1 −0 CHANGES
  2. +1 −0 src/ds/io.c
View
@@ -11,6 +11,7 @@ Bugfixes:
- DS Video: Fix affine parameter advancing (fixes mgba.io/i/802)
- DS GX: Fix incorrect W values
- DS Video: Fix 2D/3D blending alpha values
+ - DS I/O: Enable POWCNT1 bit 1 at boot (fixes mgba.io/i/616)
Misc:
- DS GX: Clean up and unify texture mapping
- DS Core: Add symbol loading
View
@@ -596,6 +596,7 @@ void DS9IOInit(struct DS* ds) {
ds->memory.io9[DS_REG_POSTFLG >> 1] = 0x0001;
ds->memory.io9[DS9_REG_GXSTAT_HI >> 1] = 0x0600;
DS9IOWrite(ds, DS9_REG_VRAMCNT_G, 0x0300);
+ DS9IOWrite(ds, DS9_REG_POWCNT1, 0x0001);
}
void DS9IOWrite(struct DS* ds, uint32_t address, uint16_t value) {

0 comments on commit e472ca5

Please sign in to comment.