I'm trying to develop a program that translates each cartridge in the XML export from BootGod's NesCartDB (mirrored here) into the correct 16-byte NES 2.0 header for this cartridge. I've hit my first snag.
The NesCartDB entry for RacerMate Challenge II shows that both VRAMs are battery-backed. Normally a battery-backed memory will have battery="1". But in this XML document, the battery= attribute appears only in <wram> elements, not <vram> elements. Here's the <cartridge> element in question:
The NesCartDB entry for RacerMate Challenge II shows that both VRAMs are battery-backed. Normally a battery-backed memory will have battery="1". But in this XML document, the battery= attribute appears only in <wram> elements, not <vram> elements. Here's the <cartridge> element in question:
Code:
<cartridge system="NES-NTSC" revision="3.11.088" crc="74920C13"
sha1="7BFC9DDE8E97F171263EB0C9C84C83705459432C"
dump="ok" dumper="Skrybe" datedumped="2012-08-30">
<board type="UNL-RACERMATE" pcb="R981-112-00" mapper="168">
<prg name="N311088 05/15/91" size="64k" crc="74920C13"
sha1="7BFC9DDE8E97F171263EB0C9C84C83705459432C"/>
<vram id="0" size="32k"/>
<vram id="1" size="32k"/>
<chip type="74xx00"/>
<chip type="74xx00"/>
<chip type="74xx174"/>
<chip type="74xx174"/>
<chip type="74xx32"/>
<chip type="74xx32"/>
<chip type="74xx4040"/>
<cic type="337002"/>
<pad h="0" v="1"/>
</board>
</cartridge>
sha1="7BFC9DDE8E97F171263EB0C9C84C83705459432C"
dump="ok" dumper="Skrybe" datedumped="2012-08-30">
<board type="UNL-RACERMATE" pcb="R981-112-00" mapper="168">
<prg name="N311088 05/15/91" size="64k" crc="74920C13"
sha1="7BFC9DDE8E97F171263EB0C9C84C83705459432C"/>
<vram id="0" size="32k"/>
<vram id="1" size="32k"/>
<chip type="74xx00"/>
<chip type="74xx00"/>
<chip type="74xx174"/>
<chip type="74xx174"/>
<chip type="74xx32"/>
<chip type="74xx32"/>
<chip type="74xx4040"/>
<cic type="337002"/>
<pad h="0" v="1"/>
</board>
</cartridge>