mirror of https://github.com/mgba-emu/mgba.git
GBA DMA: Fix DMA0-2 lengths (fixes #1344)
This commit is contained in:
parent
c6d31bd954
commit
040bd516c7
1
CHANGES
1
CHANGES
|
@ -1,6 +1,7 @@
|
||||||
0.7.2: (Future)
|
0.7.2: (Future)
|
||||||
Emulation fixes:
|
Emulation fixes:
|
||||||
- GBA Video: Fix scanline cache with scale factor change edge cases
|
- GBA Video: Fix scanline cache with scale factor change edge cases
|
||||||
|
- GBA DMA: Fix DMA0-2 lengths (fixes mgba.io/i/1344)
|
||||||
Other fixes:
|
Other fixes:
|
||||||
- Qt: More app metadata fixes
|
- Qt: More app metadata fixes
|
||||||
- Qt: Fix load recent from archive (fixes mgba.io/i/1325)
|
- Qt: Fix load recent from archive (fixes mgba.io/i/1325)
|
||||||
|
|
|
@ -461,19 +461,19 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_DMA0CNT_LO:
|
case REG_DMA0CNT_LO:
|
||||||
GBADMAWriteCNT_LO(gba, 0, value);
|
GBADMAWriteCNT_LO(gba, 0, value & 0x3FFF);
|
||||||
break;
|
break;
|
||||||
case REG_DMA0CNT_HI:
|
case REG_DMA0CNT_HI:
|
||||||
value = GBADMAWriteCNT_HI(gba, 0, value);
|
value = GBADMAWriteCNT_HI(gba, 0, value);
|
||||||
break;
|
break;
|
||||||
case REG_DMA1CNT_LO:
|
case REG_DMA1CNT_LO:
|
||||||
GBADMAWriteCNT_LO(gba, 1, value);
|
GBADMAWriteCNT_LO(gba, 1, value & 0x3FFF);
|
||||||
break;
|
break;
|
||||||
case REG_DMA1CNT_HI:
|
case REG_DMA1CNT_HI:
|
||||||
value = GBADMAWriteCNT_HI(gba, 1, value);
|
value = GBADMAWriteCNT_HI(gba, 1, value);
|
||||||
break;
|
break;
|
||||||
case REG_DMA2CNT_LO:
|
case REG_DMA2CNT_LO:
|
||||||
GBADMAWriteCNT_LO(gba, 2, value);
|
GBADMAWriteCNT_LO(gba, 2, value & 0x3FFF);
|
||||||
break;
|
break;
|
||||||
case REG_DMA2CNT_HI:
|
case REG_DMA2CNT_HI:
|
||||||
value = GBADMAWriteCNT_HI(gba, 2, value);
|
value = GBADMAWriteCNT_HI(gba, 2, value);
|
||||||
|
|
Loading…
Reference in New Issue