all repos — mgba @ 1318d13039c63a13c4d873743c3878906dc296c7

mGBA Game Boy Advance Emulator

GBA BIOS: Fix BitUnPack final byte
Vicki Pfau vi@endrift.com
Sun, 24 Jun 2018 18:38:00 -0700
commit

1318d13039c63a13c4d873743c3878906dc296c7

parent

1079e0346463b8edd6f6d6a0a212e335a496698d

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

jump to
M CHANGESCHANGES

@@ -38,6 +38,7 @@ - Core: Fix audio sync breaking when interrupted

- Qt: Improve FPS timer stability - GBA Serialize: Fix loading channel 3 volume (fixes mgba.io/i/1107) - GBA SIO: Fix unconnected SIOCNT for multi mode (fixes mgba.io/i/1105) + - GBA BIOS: Fix BitUnPack final byte Misc: - GBA Timer: Use global cycles for timers - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
M src/gba/bios.csrc/gba/bios.c

@@ -809,7 +809,7 @@ uint8_t in = 0;

uint32_t out = 0; int bitsRemaining = 0; int bitsEaten = 0; - while (sourceLen > 0) { + while (sourceLen > 0 || bitsRemaining) { if (!bitsRemaining) { in = cpu->memory.load8(cpu, source, 0); bitsRemaining = 8;