GBA BIOS: BitUnPack improvements
Vicki Pfau vi@endrift.com
Mon, 07 Jan 2019 22:15:23 -0800
2 files changed,
3 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -74,6 +74,7 @@ - GB, GBA Video: Don't call finishFrame twice in thread proxy
- GB Audio: Fix channel 1, 2 and 4 reset timing - Util: Fix wrapping edge cases in RingFIFO - GBA Hardware: Fix RTC handshake transition (fixes mgba.io/i/1134) + - GBA BIOS: Fix BitUnPack narrowing 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.c
→
src/gba/bios.c
@@ -819,7 +819,6 @@ unsigned scaled = in & ((1 << sourceWidth) - 1);
in >>= sourceWidth; if (scaled || bias & 0x80000000) { scaled += bias & 0x7FFFFFFF; - scaled &= (1 << destWidth) - 1; } bitsRemaining -= sourceWidth; out |= scaled << bitsEaten;@@ -831,4 +830,6 @@ out = 0;
dest += 4; } } + cpu->gprs[0] = source; + cpu->gprs[1] = dest; }