From bc9ae4e46c5d655025c00e8836c42ba09b88efd6 Mon Sep 17 00:00:00 2001
From: David Korth <gerbilsoft@gerbilsoft.com>
Date: Sun, 19 Jul 2020 13:49:18 -0400
Subject: [PATCH] console: CGB doesn't require licensee code to be 0x33.

Various unlicensed and homebrew titles don't have the licensee code
set correctly, but they *do* function in CGB mode.
---
 magic/Magdir/console | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/magic/Magdir/console b/magic/Magdir/console
index 39e1e0e3..ae275ce3 100644
--- a/magic/Magdir/console
+++ b/magic/Magdir/console
@@ -125,6 +125,7 @@
 >0x14c		byte		x			(Rev.%02u)
 
 # Machine type. (SGB, CGB, SGB+CGB)
+# Old licensee code 0x33 is required for SGB, but not CGB.
 >0x14b		byte		0x33
 >>0x146		byte		0x03
 >>>0x143	byte&0x80	0x80	[SGB+CGB]
@@ -133,6 +134,8 @@
 >>>0x143	byte&0xC0	0x80	[CGB]
 >>>0x143	byte&0xC0	0xC0	[CGB ONLY]
 >0x14b		byte		!0x33
+>>0x143		byte&0xC0	0x80	[CGB]
+>>0x143		byte&0xC0	0xC0	[CGB ONLY]
 
 # Mapper.
 >0x147 byte 0x00  [ROM ONLY]
-- 
2.27.0

