summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/itgamble.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-07-09 07:10:40 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-07-09 07:10:40 +0000
commit5201d52344024ddc2f3288cf090b9a6ee37bc342 (patch)
treecc333fd344bd72055f1f71ba6bb7df1f3c997ebc /src/mame/drivers/itgamble.c
parent2577a0b22d7b5d43ea7078e5ff9cfd0ae47a3a69 (diff)
Expanded address maps from 3 to 4. Moved ADDRESS_SPACE_PROGRAM/DATA/IO
constants to cpuintrf, as those names are really only applicable to CPUs. Added new ADDRESS_MAP_0/1/2/3 constants to identify address maps more generically. Updated memory system to be more general about address map handling. Added the concept of default address maps (in addition to the already existing internal memory maps). The difference between internal and default memory maps is that internal memory maps always override everything (including user-specified maps), but default memory maps simply provide a default that can be overridden. Converted the okim6295 sound driver to use address maps for access. By default, it defines a ROM address map that overlays its full region. As a result, the validity checks require all okim6295 regions to be at least 256k, unless you provide your own address map. Updated all regions to meet this requirement. Updated the atarijsa code to use a custom address space for its okim6295 accesses (which are banked on the first half and static on the second half), as an example of configuring a device with a custom address space. For now, attempts to use okim6295_set_bank_base() will still work, though banking for the okim chips should be moved to custom address maps in the drivers eventually. The first time okim6295_set_bank_base() is called, it will install a banked memory handler over the region and use memory_set_bankptr() to change the base on subsequent bank switches. Moved address map validity checks to be run for each device instead of just each CPU.
Diffstat (limited to 'src/mame/drivers/itgamble.c')
-rw-r--r--src/mame/drivers/itgamble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/itgamble.c b/src/mame/drivers/itgamble.c
index 4b7350a8ba2..be2726022ed 100644
--- a/src/mame/drivers/itgamble.c
+++ b/src/mame/drivers/itgamble.c
@@ -407,7 +407,7 @@ ROM_START( laperlag )
ROM_LOAD( "ic18-laperlaneragold2.bin", 0x000000, 0x80000, CRC(ae37de44) SHA1(089f97678fa39aee1885d7c63c4bc7c88e7fe553) )
ROM_LOAD( "ic17-laperlaneragold3.bin", 0x080000, 0x80000, CRC(86da6d11) SHA1(e6b7f9ccbf2e91a60fdf38067ec7ac7e73dea8cd) )
- ROM_REGION( 0x20000, "oki", 0 ) /* M6295 samples */
+ ROM_REGION( 0x40000, "oki", 0 ) /* M6295 samples */
ROM_LOAD( "ic25-uno.bin", 0x00000, 0x20000, CRC(e6a0854b) SHA1(394e01bb24abd1e0d2c447b4d620fc5d02257d8a) )
ROM_END
@@ -549,7 +549,7 @@ ROM_START( euro2k2s )
ROM_LOAD( "europa2002_2-a.ic20", 0x100000, 0x40000, CRC(971bc33b) SHA1(c385e5bef57cdb52a86c1e38fca471ef5ab3da7c) )
ROM_LOAD( "europa2002space3.ic19", 0x140000, 0x40000, CRC(d82dba04) SHA1(63d407dd036d3c7f190ad7b6d694288e9a9e56d0) ) /* identical halves */
- ROM_REGION( 0x20000, "oki", 0 ) /* M6295 samples */
+ ROM_REGION( 0x40000, "oki", 0 ) /* M6295 samples */
ROM_LOAD( "1-a.ic25", 0x00000, 0x20000, CRC(8fcb283d) SHA1(9e95c72967da13606eed6d16f84145273b9ffddf) )
ROM_END