summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/juicebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/juicebox.cpp')
-rw-r--r--src/mame/drivers/juicebox.cpp33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/mame/drivers/juicebox.cpp b/src/mame/drivers/juicebox.cpp
index 2e01708869a..ce141025821 100644
--- a/src/mame/drivers/juicebox.cpp
+++ b/src/mame/drivers/juicebox.cpp
@@ -308,25 +308,24 @@ void juicebox_state::init_juicebox()
// do nothing
}
-void juicebox_state::juicebox(machine_config &config)
-{
- ARM7(config, m_maincpu, 66000000);
- m_maincpu->set_addrmap(AS_PROGRAM, &juicebox_state::juicebox_map);
+MACHINE_CONFIG_START(juicebox_state::juicebox)
+ MCFG_DEVICE_ADD("maincpu", ARM7, 66000000)
+ MCFG_DEVICE_PROGRAM_MAP(juicebox_map)
+
+ MCFG_PALETTE_ADD("palette", 32768)
- PALETTE(config, "palette").set_entries(32768);
+ MCFG_SCREEN_ADD("screen", LCD)
+ MCFG_SCREEN_REFRESH_RATE(60)
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
+ MCFG_SCREEN_SIZE(240, 160)
+ MCFG_SCREEN_VISIBLE_AREA(0, 240 - 1, 0, 160 - 1)
- screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD));
- screen.set_refresh_hz(60);
- screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
- screen.set_size(240, 160);
- screen.set_visarea(0, 240 - 1, 0, 160 - 1);
- screen.set_screen_update("s3c44b0", FUNC(s3c44b0_device::video_update));
+ MCFG_SCREEN_UPDATE_DEVICE("s3c44b0", s3c44b0_device, video_update)
SPEAKER(config, "speaker").front_center();
- DAC_16BIT_R2R_TWOS_COMPLEMENT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC
- voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
- vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
- vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
+ MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC
+ MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
+ MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
S3C44B0(config, m_s3c44b0, 10000000);
m_s3c44b0->set_cpu("maincpu");
@@ -337,8 +336,8 @@ void juicebox_state::juicebox(machine_config &config)
SMARTMEDIA(config, m_smartmedia, 0);
/* software lists */
- SOFTWARE_LIST(config, "cart_list").set_original("juicebox");
-}
+ MCFG_SOFTWARE_LIST_ADD("cart_list","juicebox")
+MACHINE_CONFIG_END
static INPUT_PORTS_START( juicebox )
PORT_START( "PORTG" )