all repos — mgba @ 787b2bd1a3d14473beea51257cc0a99a609800bd

mGBA Game Boy Advance Emulator

GBA BIOS: Fix GetBiosChecksum to return the value of a real GBA, regardless of used BIOS
Jeffrey Pfau jeffrey@endrift.com
Tue, 13 Jan 2015 21:22:55 -0800
commit

787b2bd1a3d14473beea51257cc0a99a609800bd

parent

2688642f019e693fd8ebb84c5ef728a425a41cc6

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

jump to
M CHANGESCHANGES

@@ -52,6 +52,7 @@ - GBA Memory: Filter out top nybble of DMA addresses

- Debugger: Fix binary print putting spaces between digits - GBA BIOS: Fix LZ77UnCompVram to use 16-bit loads from decompressed memory - GBA BIOS: Fix HuffUnComp to work when games pass an invalid bit length + - GBA BIOS: Fix GetBiosChecksum to return the value of a real GBA, regardless of used BIOS 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

@@ -215,7 +215,10 @@ case 0xC:

ARMRaiseSWI(cpu); break; case 0xD: - cpu->gprs[0] = GBAChecksum(gba->memory.bios, SIZE_BIOS); + cpu->gprs[0] = GBA_BIOS_CHECKSUM; + cpu->gprs[1] = 1; + cpu->gprs[3] = SIZE_BIOS; + break; case 0xE: _BgAffineSet(gba); break;