From 2912bd2d078ed2778dd54660b5190a05eb6e172e Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 12 Sep 2022 18:12:11 -0700 Subject: [PATCH] GB: Support CGB0 boot ROM loading --- CHANGES | 1 + src/gb/gb.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 35a4bf926..442380f5d 100644 --- a/CHANGES +++ b/CHANGES @@ -78,6 +78,7 @@ Misc: - Debugger: GDB now works while the game is paused - Debugger: Add command to load external symbol file (fixes mgba.io/i/2480) - FFmpeg: Support dynamic audio sample rate + - GB: Support CGB0 boot ROM loading - GB Audio: Increase sample rate - GB MBC: Filter out MBC errors when cartridge is yanked (fixes mgba.io/i/2488) - GB MBC: Partially implement TAMA5 RTC diff --git a/src/gb/gb.c b/src/gb/gb.c index bb07f9d1b..3f9fd59a6 100644 --- a/src/gb/gb.c +++ b/src/gb/gb.c @@ -33,6 +33,7 @@ static const uint8_t _registeredTrademark[] = {0x3C, 0x42, 0xB9, 0xA5, 0xB9, 0xA #define SGB_BIOS_CHECKSUM 0xEC8A83B9 #define SGB2_BIOS_CHECKSUM 0X53D0DD63 #define CGB_BIOS_CHECKSUM 0x41884E46 +#define CGB0_BIOS_CHECKSUM 0xE8EF5318 #define AGB_BIOS_CHECKSUM 0xFFD6B0F1 mLOG_DEFINE_CATEGORY(GB, "GB", "gb"); @@ -513,6 +514,7 @@ bool GBIsBIOS(struct VFile* vf) { case SGB_BIOS_CHECKSUM: case SGB2_BIOS_CHECKSUM: case CGB_BIOS_CHECKSUM: + case CGB0_BIOS_CHECKSUM: case AGB_BIOS_CHECKSUM: return true; default: