summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/hunter2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hunter2.cpp')
-rw-r--r--src/mame/drivers/hunter2.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/hunter2.cpp b/src/mame/drivers/hunter2.cpp
index c82443a40be..cddeabc14b8 100644
--- a/src/mame/drivers/hunter2.cpp
+++ b/src/mame/drivers/hunter2.cpp
@@ -374,9 +374,9 @@ WRITE_LINE_MEMBER(hunter2_state::rxd_w)
MACHINE_CONFIG_START(hunter2_state::hunter2)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", NSC800, XTAL(4'000'000))
- MCFG_CPU_PROGRAM_MAP(hunter2_mem)
- MCFG_CPU_IO_MAP(hunter2_io)
+ MCFG_DEVICE_ADD("maincpu", NSC800, XTAL(4'000'000))
+ MCFG_DEVICE_PROGRAM_MAP(hunter2_mem)
+ MCFG_DEVICE_IO_MAP(hunter2_io)
/* video hardware */
MCFG_SCREEN_ADD("screen", LCD)
@@ -394,7 +394,7 @@ MACHINE_CONFIG_START(hunter2_state::hunter2)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
+ MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
/* Devices */
@@ -404,16 +404,16 @@ MACHINE_CONFIG_START(hunter2_state::hunter2)
MCFG_MM58274C_DAY1(1) // monday
MCFG_NSC810_ADD("iotimer",XTAL(4'000'000),XTAL(4'000'000))
- MCFG_NSC810_PORTA_READ(READ8(hunter2_state,keyboard_r))
- MCFG_NSC810_PORTB_READ(READ8(hunter2_state,serial_dsr_r))
- MCFG_NSC810_PORTB_WRITE(WRITE8(hunter2_state,keyboard_w))
- MCFG_NSC810_PORTC_READ(READ8(hunter2_state,serial_rx_r))
- MCFG_NSC810_TIMER0_OUT(WRITELINE(hunter2_state,timer0_out))
- MCFG_NSC810_TIMER1_OUT(WRITELINE(hunter2_state,timer1_out))
-
- MCFG_RS232_PORT_ADD("serial",default_rs232_devices,nullptr)
- MCFG_RS232_CTS_HANDLER(WRITELINE(hunter2_state,cts_w))
- MCFG_RS232_RXD_HANDLER(WRITELINE(hunter2_state,rxd_w))
+ MCFG_NSC810_PORTA_READ(READ8(*this, hunter2_state,keyboard_r))
+ MCFG_NSC810_PORTB_READ(READ8(*this, hunter2_state,serial_dsr_r))
+ MCFG_NSC810_PORTB_WRITE(WRITE8(*this, hunter2_state,keyboard_w))
+ MCFG_NSC810_PORTC_READ(READ8(*this, hunter2_state,serial_rx_r))
+ MCFG_NSC810_TIMER0_OUT(WRITELINE(*this, hunter2_state,timer0_out))
+ MCFG_NSC810_TIMER1_OUT(WRITELINE(*this, hunter2_state,timer1_out))
+
+ MCFG_DEVICE_ADD("serial",RS232_PORT, default_rs232_devices,nullptr)
+ MCFG_RS232_CTS_HANDLER(WRITELINE(*this, hunter2_state,cts_w))
+ MCFG_RS232_RXD_HANDLER(WRITELINE(*this, hunter2_state,rxd_w))
MCFG_NVRAM_ADD_0FILL("nvram")