MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Kale
Il Sindaco
Reged: 09/26/03
Posts: 155
Loc: Naples, Italy
Send PM
Re: toggling roms.
06/29/09 03:04 PM


From your description it looks like a normal ROM bankswitch. If so, you should see what I/O port the OE is connected and use the bankswitch system on it (maybe with external region(s) with ROMREGION_ERASEFF and a region size multiplied by 2, if that will simplify your life). For an example, check the bank instances in the sfbonus.c driver. When the ROM is enabled, you call a bankswitch with length = 0, when it's disabled, you call the bankswitch with length = size of the ROM. If done correctly, the latter case will call that region with everything filled with 0xff.

Edited by Kale (06/29/09 03:14 PM)







Entire thread
Subject Posted by Posted on
* toggling roms. palindrome 06/29/09 04:30 AM
. * Re: toggling roms. Kale  06/29/09 03:04 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 40 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3610