all repos — mgba @ 3dc30a13d19fb536c1f348bc8c227bb40cbfc962

mGBA Game Boy Advance Emulator

GBA BIOS: BitUnPack improvements
Vicki Pfau vi@endrift.com
Mon, 07 Jan 2019 22:15:23 -0800
commit

3dc30a13d19fb536c1f348bc8c227bb40cbfc962

parent

aa90dbbc92aca9c864e52c89005d9241121a1dc0

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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; }