summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/paranoia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/paranoia.cpp')
-rw-r--r--src/mame/drivers/paranoia.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/mame/drivers/paranoia.cpp b/src/mame/drivers/paranoia.cpp
index cf1bcd51027..12dac0ee646 100644
--- a/src/mame/drivers/paranoia.cpp
+++ b/src/mame/drivers/paranoia.cpp
@@ -44,7 +44,6 @@ HuC6280A (Hudson)
#include "video/huc6260.h"
#include "video/huc6270.h"
#include "cpu/h6280/h6280.h"
-#include "sound/c6280.h"
#include "screen.h"
#include "speaker.h"
@@ -86,10 +85,6 @@ void paranoia_state::pce_mem(address_map &map)
map(0x1F0000, 0x1F1FFF).ram().mirror(0x6000);
map(0x1FE000, 0x1FE3FF).rw("huc6270", FUNC(huc6270_device::read), FUNC(huc6270_device::write));
map(0x1FE400, 0x1FE7FF).rw(m_huc6260, FUNC(huc6260_device::read), FUNC(huc6260_device::write));
- map(0x1FE800, 0x1FEBFF).rw("c6280", FUNC(c6280_device::c6280_r), FUNC(c6280_device::c6280_w));
- map(0x1FEC00, 0x1FEFFF).rw(m_maincpu, FUNC(h6280_device::timer_r), FUNC(h6280_device::timer_w));
- map(0x1FF000, 0x1FF3FF).rw(FUNC(paranoia_state::pce_joystick_r), FUNC(paranoia_state::pce_joystick_w));
- map(0x1FF400, 0x1FF7FF).rw(m_maincpu, FUNC(h6280_device::irq_status_r), FUNC(h6280_device::irq_status_w));
}
void paranoia_state::pce_io(address_map &map)
@@ -172,9 +167,14 @@ WRITE_LINE_MEMBER(paranoia_state::i8155_timer_out)
MACHINE_CONFIG_START(paranoia_state::paranoia)
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", H6280, PCE_MAIN_CLOCK/3)
- MCFG_DEVICE_PROGRAM_MAP(pce_mem)
- MCFG_DEVICE_IO_MAP(pce_io)
+ H6280(config, m_maincpu, PCE_MAIN_CLOCK/3);
+ m_maincpu->set_addrmap(AS_PROGRAM, pce_mem);
+ m_maincpu->set_addrmap(AS_IO, pce_io);
+ m_maincpu->port_in_cb().set(FUNC(paranoia_state::pce_joystick_r));
+ m_maincpu->port_out_cb().set(FUNC(paranoia_state::pce_joystick_w));
+ m_maincpu->add_route(0, "lspeaker", 1.00);
+ m_maincpu->add_route(1, "rspeaker", 1.00);
+
MCFG_QUANTUM_TIME(attotime::from_hz(60))
MCFG_DEVICE_ADD("sub", I8085A, 18000000/3)
@@ -208,11 +208,6 @@ MACHINE_CONFIG_START(paranoia_state::paranoia)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_DEVICE_ADD("c6280", C6280, PCE_MAIN_CLOCK/6)
- MCFG_C6280_CPU("maincpu")
- MCFG_SOUND_ROUTE(0, "lspeaker", 1.00)
- MCFG_SOUND_ROUTE(1, "rspeaker", 1.00)
-
MACHINE_CONFIG_END
ROM_START(paranoia)