diff options
Diffstat (limited to 'src/mame/drivers/tourvis.cpp')
-rw-r--r-- | src/mame/drivers/tourvis.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/tourvis.cpp b/src/mame/drivers/tourvis.cpp index c3c76dfadff..8cfdbe99efc 100644 --- a/src/mame/drivers/tourvis.cpp +++ b/src/mame/drivers/tourvis.cpp @@ -209,6 +209,9 @@ public: DECLARE_DEVICE_IMAGE_LOAD_MEMBER(tourvision_cart); void tourvision(machine_config &config); + void pce_io(address_map &map); + void pce_mem(address_map &map); + void tourvision_8085_map(address_map &map); private: required_device<cpu_device> m_subcpu; required_device<generic_slot_device> m_cart; @@ -330,7 +333,7 @@ static INPUT_PORTS_START( tourvision ) PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_SPECIAL ) // games slot status in bits 3 to 7 INPUT_PORTS_END -static ADDRESS_MAP_START( pce_mem , AS_PROGRAM, 8, tourvision_state ) +ADDRESS_MAP_START(tourvision_state::pce_mem) AM_RANGE( 0x000000, 0x0FFFFF) AM_ROM AM_RANGE( 0x1F0000, 0x1F1FFF) AM_RAM AM_MIRROR(0x6000) AM_RANGE( 0x1FE000, 0x1FE3FF) AM_DEVREADWRITE( "huc6270", huc6270_device, read, write ) @@ -341,7 +344,7 @@ static ADDRESS_MAP_START( pce_mem , AS_PROGRAM, 8, tourvision_state ) AM_RANGE( 0x1FF400, 0x1FF7FF) AM_DEVREADWRITE("maincpu", h6280_device, irq_status_r, irq_status_w ) ADDRESS_MAP_END -static ADDRESS_MAP_START( pce_io , AS_IO, 8, tourvision_state ) +ADDRESS_MAP_START(tourvision_state::pce_io) AM_RANGE( 0x00, 0x03) AM_DEVREADWRITE( "huc6270", huc6270_device, read, write ) ADDRESS_MAP_END @@ -350,7 +353,7 @@ WRITE8_MEMBER(tourvision_state::tourvision_8085_d000_w) //logerror( "D000 (8085) write %02x\n", data ); } -static ADDRESS_MAP_START(tourvision_8085_map, AS_PROGRAM, 8, tourvision_state ) +ADDRESS_MAP_START(tourvision_state::tourvision_8085_map) AM_RANGE(0x0000, 0x7fff) AM_ROM AM_RANGE(0x8000, 0x80ff) AM_DEVREADWRITE("i8155", i8155_device, memory_r, memory_w) AM_RANGE(0x8100, 0x8107) AM_DEVREADWRITE("i8155", i8155_device, io_r, io_w) |