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)
|
|