summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/calchase.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-02-01 10:04:01 +0100
committer Olivier Galibert <galibert@pobox.com>2018-02-12 10:04:52 +0100
commitc5219643162cb7d2a8688425a09008d28c8e2437 (patch)
treef2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/calchase.cpp
parent09b6ce46873b38de9030a3c0378ff327f17af881 (diff)
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible soon.
Diffstat (limited to 'src/mame/drivers/calchase.cpp')
-rw-r--r--src/mame/drivers/calchase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/calchase.cpp b/src/mame/drivers/calchase.cpp
index 6c6a757af6a..fcf7e4a9bb7 100644
--- a/src/mame/drivers/calchase.cpp
+++ b/src/mame/drivers/calchase.cpp
@@ -175,6 +175,8 @@ public:
void intel82439tx_init();
void calchase(machine_config &config);
void hostinv(machine_config &config);
+ void calchase_io(address_map &map);
+ void calchase_map(address_map &map);
};
// Intel 82439TX System Controller (MTXC)
@@ -380,7 +382,7 @@ READ16_MEMBER(calchase_state::calchase_iocard5_r)
}
-static ADDRESS_MAP_START( calchase_map, AS_PROGRAM, 32, calchase_state )
+ADDRESS_MAP_START(calchase_state::calchase_map)
AM_RANGE(0x00000000, 0x0009ffff) AM_RAM
AM_RANGE(0x000a0000, 0x000bffff) AM_DEVREADWRITE8("vga", trident_vga_device, mem_r, mem_w, 0xffffffff) // VGA VRAM
AM_RANGE(0x000c0000, 0x000c7fff) AM_RAM AM_REGION("video_bios", 0)
@@ -415,7 +417,7 @@ static ADDRESS_MAP_START( calchase_map, AS_PROGRAM, 32, calchase_state )
AM_RANGE(0xfffe0000, 0xffffffff) AM_ROM AM_REGION("bios", 0) /* System BIOS */
ADDRESS_MAP_END
-static ADDRESS_MAP_START( calchase_io, AS_IO, 32, calchase_state )
+ADDRESS_MAP_START(calchase_state::calchase_io)
AM_IMPORT_FROM(pcat32_io_common)
//AM_RANGE(0x00e8, 0x00eb) AM_NOP
AM_RANGE(0x00e8, 0x00ef) AM_NOP //AMI BIOS write to this ports as delays between I/O ports operations sending al value -> NEWIODELAY