<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello, I am a fairly involved member of the modern Game Boy
development community. I would like to submit two patches related
to that.</p>
<p>The first one is simply adding some recently-found values in the
header, as well as updating the reference to the new
community-maintained docs.<br>
</p>
<p><tt>--- a/magic/Magdir/console</tt><tt><br>
</tt><tt>+++ b/magic/Magdir/console</tt><tt><br>
</tt><tt>@@ -113,7 +113,7 @@</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> #------------------------------------------------------------------------------</tt><tt><br>
</tt><tt> # gameboy: file(1) magic for the Nintendo (Color)
Gameboy raw ROM format</tt><tt><br>
</tt><tt>-# Reference:
<a class="moz-txt-link-freetext" href="http://gbdev.gg8.se/wiki/articles/The_Cartridge_Header">http://gbdev.gg8.se/wiki/articles/The_Cartridge_Header</a></tt><tt><br>
</tt><tt>+# Reference:
<a class="moz-txt-link-freetext" href="https://gbdev.io/pandocs/#the-cartridge-header">https://gbdev.io/pandocs/#the-cartridge-header</a></tt><tt><br>
</tt><tt> #</tt><tt><br>
</tt><tt> 0x104 bequad 0xCEED6666CC0D000B
Game Boy ROM image</tt><tt><br>
</tt><tt> # TODO: application/x-gameboy-color-rom for GBC.</tt><tt><br>
</tt><tt>@@ -157,6 +157,8 @@</tt><tt><br>
</tt><tt> >0x147 byte 0x1C [MBC5+RUMBLE]</tt><tt><br>
</tt><tt> >0x147 byte 0x1D [MBC5+RUMBLE+SRAM]</tt><tt><br>
</tt><tt> >0x147 byte 0x1E [MBC5+RUMBLE+SRAM+BATT]</tt><tt><br>
</tt><tt>+>0x147 byte 0x20 [MBC6]</tt><tt><br>
</tt><tt>+>0x147 byte 0x22 [MBC7+SENSOR+RUMBLE+SRAM+BATT]</tt><tt><br>
</tt><tt> >0x147 byte 0xFC [Pocket Camera]</tt><tt><br>
</tt><tt> >0x147 byte 0xFD [Bandai TAMA5]</tt><tt><br>
</tt><tt> >0x147 byte 0xFE [Hudson HuC-3]</tt><tt><br>
</tt><tt>@@ -171,6 +173,7 @@</tt><tt><br>
</tt><tt> >0x148 byte 5 \b, ROM: 8Mbit</tt><tt><br>
</tt><tt> >0x148 byte 6 \b, ROM: 16Mbit</tt><tt><br>
</tt><tt> >0x148 byte 7 \b, ROM: 32Mbit</tt><tt><br>
</tt><tt>+>0x148 byte 8 \b, ROM: 64Mbit</tt><tt><br>
</tt><tt> >0x148 byte 0x52 \b, ROM: 9Mbit</tt><tt><br>
</tt><tt> >0x148 byte 0x53 \b, ROM: 10Mbit</tt><tt><br>
</tt><tt> >0x148 byte 0x54 \b, ROM: 12Mbit</tt></p>
<p>Additionally, I have a few questions:<br>
</p>
<ul>
<li>Should the MIME TODO be handled as well while we're at this?</li>
<li>Do we want to print additional info from the header?</li>
</ul>
I also know that some ROM dumps (from MMM01) have the header near
the very end of the ROM, do we want to attempt supporting that as
well? I don't know any references for that though, I'd have to ask
around.<br>
<p>The second patch is recognizing RGBDS object files. RGBDS is the
most popular GB assembly development system.<br>
I'm not sure what would be the most relevant place to add it, so I
went with right below the GBS format magic.<br>
</p>
<p><tt>--- a/magic/Magdir/console</tt><tt><br>
</tt><tt>
+++ b/magic/Magdir/console</tt><tt><br>
</tt><tt>
@@ -666,6 +669,16 @@</tt><tt><br>
</tt><tt> >3 byte x version %u,</tt><tt><br>
</tt><tt> >4 byte x %u tracks</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt>+# Rednex Game Boy Development System object files</tt><tt><br>
</tt><tt>+# See rgbds(5), online at
<a class="moz-txt-link-freetext" href="https://rednex.github.io/rgbds/rgbds.5.html">https://rednex.github.io/rgbds/rgbds.5.html</a></tt><tt><br>
</tt><tt>+0 string RGB</tt><tt><br>
</tt><tt>+>3 byte >0x30</tt><tt><br>
</tt><tt>+>>3 byte <0x39 RGBDS object file,
version %c</tt><tt><br>
</tt><tt>+!:mime application/x-object</tt><tt><br>
</tt><tt>+>>3 byte =0x39 RGBDS object file, version
9</tt><tt><br>
</tt><tt>+!:mime application/x-object</tt><tt><br>
</tt><tt>+>>>4 lelong x \b, revision %u</tt><tt><br>
</tt><tt>+</tt><tt><br>
</tt><tt> # IPS Patch Files from: From: Thomas Klausner
<a class="moz-txt-link-rfc2396E" href="mailto:tk@giga.or.at"><tk@giga.or.at></a></tt><tt><br>
</tt><tt> # see <a class="moz-txt-link-freetext" href="https://zerosoft.zophar.net/ips.php">https://zerosoft.zophar.net/ips.php</a></tt><tt><br>
</tt><tt> 0 string PATCH IPS patch file</tt></p>
<p>Regards,<br>
~ EldredHABERT<br>
</p>
</body>
</html>