Permalink
Browse files
GBA BIOS: Fix BitUnPack final byte
- Loading branch information...
Showing
with
2 additions
and
1 deletion.
-
+1
−0
CHANGES
-
+1
−1
src/gba/bios.c
|
|
@@ -38,6 +38,7 @@ Bugfixes: |
|
|
- 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)
|
|
|
|
|
|
@@ -809,7 +809,7 @@ static void _unBitPack(struct GBA* gba) { |
|
|
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;
|
|
|
|
0 comments on commit
1318d13