all repos — mgba @ 30c28f225916338c75c7fa516a0bb4edbde81392

mGBA Game Boy Advance Emulator

GBA Memory: Filter out top nybble of DMA addresses
Jeffrey Pfau jeffrey@endrift.com
Wed, 07 Jan 2015 00:58:31 -0800
commit

30c28f225916338c75c7fa516a0bb4edbde81392

parent

ce28d6d96642dbb58b2ea6207d11021d4d2dc745

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -44,6 +44,7 @@ - Video: Fix FFmpeg crashing when the file extension is wrong

- GBA Audio: Fix GB audio channels being too quiet (fixes #159) - Qt: Fix a race condition when a game crashes immediately - Qt: Fix some cases where key mapping can break if focus is adjusted + - GBA Memory: Filter out top nybble of DMA addresses Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -976,12 +976,12 @@ }

void GBAMemoryWriteDMASAD(struct GBA* gba, int dma, uint32_t address) { struct GBAMemory* memory = &gba->memory; - memory->dma[dma].source = address & 0xFFFFFFFE; + memory->dma[dma].source = address & 0x0FFFFFFE; } void GBAMemoryWriteDMADAD(struct GBA* gba, int dma, uint32_t address) { struct GBAMemory* memory = &gba->memory; - memory->dma[dma].dest = address & 0xFFFFFFFE; + memory->dma[dma].dest = address & 0x0FFFFFFE; } void GBAMemoryWriteDMACNT_LO(struct GBA* gba, int dma, uint16_t count) {