all repos — mgba @ 1a9b0eec6f1c9c270135370b5ffc00c7fd47f9c0

mGBA Game Boy Advance Emulator

GBA BIOS: Fix HuffUnComp boundary conditions
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Jan 2015 01:35:02 -0800
commit

1a9b0eec6f1c9c270135370b5ffc00c7fd47f9c0

parent

06bf931b773259daa73f18691610af71518aa68e

2 files changed, 1 insertions(+), 5 deletions(-)

jump to
M CHANGESCHANGES

@@ -58,6 +58,7 @@ - GBA Memory: Fix initial DMA state

- GBA BIOS: Fix BIOS prefetch after returning from an IRQ - GBA BIOS: Fix BIOS prefetch after reset - GBA Memory: Fix alignment of open bus 8- and 16-bit loads + - GBA BIOS: Fix HuffUnComp boundary conditions Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -397,8 +397,6 @@ if (32 % bits || bits == 1) {

GBALog(gba, GBA_LOG_STUB, "Unimplemented unaligned Huffman"); return; } - int padding = (4 - remaining) & 0x3; - remaining &= 0xFFFFFFFC; // We assume the signature byte (0x20) is correct int treesize = (cpu->memory.load8(cpu, source + 4, 0) << 1) + 1; int block = 0;

@@ -448,9 +446,6 @@ block = 0;

} } - } - if (padding) { - cpu->memory.store32(cpu, dest, block, 0); } cpu->gprs[0] = source; cpu->gprs[1] = dest;