verified the new Tourvision Bull Fight edge connector dump matches the PCE dump 100% too (nw)

This commit is contained in:
David Haywood 2016-04-26 18:20:46 +01:00
parent dbcf782e05
commit 5fcb16d42d
2 changed files with 30 additions and 5 deletions

View File

@ -19,10 +19,9 @@
<year>1989</year>
<publisher>bootleg (Tourvision) / Cream</publisher>
<part name="cart" interface="tourvision_cart">
<dataarea name="rom" size="0x100000">
<!-- need to verify, PCE roms of this size use different loading, 0x40000 data in original PCE rom is at 0x80000 in the edge connector dump -->
<rom name="bull_fight.bin" size="0x100000" crc="53e02944" sha1="c3921da8018f510dd35198d278245837dc69bcd7" offset="000000" />
<!--<rom name="bull fight - ring no haja (japan).pce" size="393216" crc="5c4d1991" sha1="6cd94e6209da2939752ab6b1c2d46e5b48c8e0cb" offset="000000" />-->
<dataarea name="rom" size="0x060000">
<!-- verified identical -->
<rom name="bull fight - ring no haja (japan).pce" size="393216" crc="5c4d1991" sha1="6cd94e6209da2939752ab6b1c2d46e5b48c8e0cb" offset="000000" />
</dataarea>
</part>
</software>

View File

@ -286,7 +286,33 @@ DEVICE_IMAGE_LOAD_MEMBER( tourvision_state, tourvision_cart )
m_cart->common_load_rom(m_cart->get_rom_base(), m_rom_size, "rom");
UINT8* rgn = memregion("maincpu")->base();
memcpy(rgn, m_cart->get_rom_base(), m_rom_size);
UINT8* base = m_cart->get_rom_base();
if (m_rom_size == 0x060000)
{
memcpy(rgn+0x000000, base+0x000000, 0x040000 );
memcpy(rgn+0x040000, base+0x000000, 0x040000 );
memcpy(rgn+0x080000, base+0x040000, 0x020000 );
memcpy(rgn+0x0a0000, base+0x040000, 0x020000 );
memcpy(rgn+0x0c0000, base+0x040000, 0x020000 );
memcpy(rgn+0x0e0000, base+0x040000, 0x020000 );
}
else
{
memcpy(rgn, base, m_rom_size );
}
#if 0
{
FILE *fp;
fp=fopen("tourvision.bin", "w+b");
if (fp)
{
fwrite(rgn, 0x100000, 1, fp);
fclose(fp);
}
}
#endif
return IMAGE_INIT_PASS;
}