From b5afb04ca5ca25eed8a78bc206bc2dbe245f71af Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 25 Oct 2015 00:00:20 -0700 Subject: [PATCH] GBA: Fix multiboot magic number --- src/gba/gba.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gba/gba.c b/src/gba/gba.c index 757619b3a..c356769f6 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -27,8 +27,8 @@ const uint32_t GBA_COMPONENT_MAGIC = 0x1000000; static const size_t GBA_ROM_MAGIC_OFFSET = 3; static const uint8_t GBA_ROM_MAGIC[] = { 0xEA }; -static const size_t GBA_MB_MAGIC_OFFSET = 0xC3; -static const uint8_t GBA_MB_MAGIC[] = { 0xEA }; +static const size_t GBA_MB_MAGIC_OFFSET = 0xC0; +static const uint8_t GBA_MB_MAGIC[] = { 0x07, 0x00, 0x00, 0xEA }; static void GBAInit(struct ARMCore* cpu, struct ARMComponent* component); static void GBAInterruptHandlerInit(struct ARMInterruptHandler* irqh);