diff --git a/CHANGES b/CHANGES index e547ab843..8d4c23b5d 100644 --- a/CHANGES +++ b/CHANGES @@ -34,6 +34,7 @@ Misc: - DS Video: Simplify VRAM mapping - DS GX: Reject and log polygons that clip to more than 10 vertices - DS Core: Backport symbol loading changes from GBA core (fixes mgba.io/i/1834) + - DS I/O: Mark BGCNT registers as readable 0.10.0: (Future) Features: diff --git a/src/ds/io.c b/src/ds/io.c index fba77d441..4c44a0461 100644 --- a/src/ds/io.c +++ b/src/ds/io.c @@ -770,6 +770,10 @@ uint16_t DS9IORead(struct DS* ds, uint32_t address) { case DS_REG_KEYINPUT: return DSIOReadKeyInput(ds); case DS_REG_VCOUNT: + case DS9_REG_A_BG0CNT: + case DS9_REG_A_BG1CNT: + case DS9_REG_A_BG2CNT: + case DS9_REG_A_BG3CNT: case DS_REG_DMA0CNT_HI: case DS_REG_DMA1CNT_HI: case DS_REG_DMA2CNT_HI: @@ -896,6 +900,10 @@ uint16_t DS9IORead(struct DS* ds, uint32_t address) { case DS9_REG_CLIPMTX_RESULT_1D: case DS9_REG_CLIPMTX_RESULT_1E: case DS9_REG_CLIPMTX_RESULT_1F: + case DS9_REG_B_BG0CNT: + case DS9_REG_B_BG1CNT: + case DS9_REG_B_BG2CNT: + case DS9_REG_B_BG3CNT: // Handled transparently by the registers break; case DS_REG_AUXSPICNT: