all repos — mgba @ 0670eebe15083c4a58ae7f181598ddeba3a0d5d2

mGBA Game Boy Advance Emulator

GBA: Fix multiboot entry point while skipping BIOS
Vicki Pfau vi@endrift.com
Mon, 10 Feb 2020 18:06:57 -0800
commit

0670eebe15083c4a58ae7f181598ddeba3a0d5d2

parent

75e67aee17067a1a58bf8a3fc65926fcada68f2c

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

jump to
M CHANGESCHANGES

@@ -5,6 +5,7 @@ Emulation fixes:

- ARM: Fix ALU reading PC after shifting - ARM: Fix STR storing PC after address calculation - GB Serialize: Fix timing bug loading channel 4 timing + - GBA: Fix multiboot entry point while skipping BIOS - GBA BIOS: Fix undefined instruction HLE behavior - GBA DMA: Linger last DMA on bus (fixes mgba.io/i/301 and mgba.io/i/1320) - GBA Memory: Misaligned SRAM writes are ignored
M src/gba/gba.csrc/gba/gba.c

@@ -253,7 +253,7 @@ if (cpu->gprs[ARM_PC] == BASE_RESET + WORD_SIZE_ARM) {

if (gba->memory.rom) { cpu->gprs[ARM_PC] = BASE_CART0; } else { - cpu->gprs[ARM_PC] = BASE_WORKING_RAM; + cpu->gprs[ARM_PC] = BASE_WORKING_RAM + 0xC0; } gba->video.vcount = 0x7D; gba->memory.io[REG_VCOUNT >> 1] = 0x7D;