diff options
Diffstat (limited to 'src/mame/drivers/uapce.cpp')
-rw-r--r-- | src/mame/drivers/uapce.cpp | 59 |
1 files changed, 20 insertions, 39 deletions
diff --git a/src/mame/drivers/uapce.cpp b/src/mame/drivers/uapce.cpp index 7c400fd56d2..dc732bf6709 100644 --- a/src/mame/drivers/uapce.cpp +++ b/src/mame/drivers/uapce.cpp @@ -33,24 +33,6 @@ -x1 Victory Run standardd Hucard -x1 Plexiglass control panel overlay (used) -In the August 1989 issue of Vending Times magazine: -https://archive.org/details/VendingTimesVOL29NO10August1989Clearscan/page/n69 -https://archive.org/details/VendingTimesVOL29NO10August1989Clearscan/page/n99 -there was a list of all of the available UA produced HU-Cards about to be released. -- Legendary Axe -- Victory Run -- Keith Courage in the Alpha Zones -- World Class Baseball -- Power Golf -- Blazing Lazers -- Dungeon Explorer -- Alien Crush -- China Warrior -- Military Madness -- JJ and Jeff -and said that six to ten more new game cards would be available by the end of the year. -It also shows game marquees for Victory Run and Power League. - In the February 1990 issue of Video Games & Computer Entertainment magazine, there was a list of all of the available UA produced Hu-Cards (at the current time of the article was published). The article mentions that the UA Hu-Cards were not compatible with the TG-16 gaming console. @@ -321,8 +303,7 @@ void uapce_state::pce_io(address_map &map) } -void uapce_state::uapce(machine_config &config) -{ +MACHINE_CONFIG_START(uapce_state::uapce) /* basic machine hardware */ H6280(config, m_maincpu, PCE_MAIN_CLOCK/3); m_maincpu->set_addrmap(AS_PROGRAM, &uapce_state::pce_mem); @@ -332,32 +313,32 @@ void uapce_state::uapce(machine_config &config) m_maincpu->add_route(0, "lspeaker", 0.5); m_maincpu->add_route(1, "rspeaker", 0.5); - z80_device &sub(Z80(config, "sub", 1400000)); - sub.set_addrmap(AS_PROGRAM, &uapce_state::z80_map); + MCFG_DEVICE_ADD("sub", Z80, 1400000) + MCFG_DEVICE_PROGRAM_MAP(z80_map) - config.m_minimum_quantum = attotime::from_hz(60); + MCFG_QUANTUM_TIME(attotime::from_hz(60)) /* video hardware */ - screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); - screen.set_raw(PCE_MAIN_CLOCK, huc6260_device::WPF, 64, 64 + 1024 + 64, huc6260_device::LPF, 18, 18 + 242); - screen.set_screen_update(FUNC(pce_common_state::screen_update)); - screen.set_palette("huc6260"); - - HUC6260(config, m_huc6260, PCE_MAIN_CLOCK); - m_huc6260->next_pixel_data().set("huc6270", FUNC(huc6270_device::next_pixel)); - m_huc6260->time_til_next_event().set("huc6270", FUNC(huc6270_device::time_until_next_event)); - m_huc6260->vsync_changed().set("huc6270", FUNC(huc6270_device::vsync_changed)); - m_huc6260->hsync_changed().set("huc6270", FUNC(huc6270_device::hsync_changed)); - - huc6270_device &huc6270(HUC6270(config, "huc6270", 0)); - huc6270.set_vram_size(0x10000); - huc6270.irq().set_inputline(m_maincpu, 0); + MCFG_SCREEN_ADD("screen", RASTER) + MCFG_SCREEN_RAW_PARAMS(PCE_MAIN_CLOCK, huc6260_device::WPF, 64, 64 + 1024 + 64, huc6260_device::LPF, 18, 18 + 242) + MCFG_SCREEN_UPDATE_DRIVER( pce_common_state, screen_update ) + MCFG_SCREEN_PALETTE("huc6260") + + MCFG_DEVICE_ADD( "huc6260", HUC6260, PCE_MAIN_CLOCK ) + MCFG_HUC6260_NEXT_PIXEL_DATA_CB(READ16("huc6270", huc6270_device, next_pixel)) + MCFG_HUC6260_TIME_TIL_NEXT_EVENT_CB(READ16("huc6270", huc6270_device, time_until_next_event)) + MCFG_HUC6260_VSYNC_CHANGED_CB(WRITELINE("huc6270", huc6270_device, vsync_changed)) + MCFG_HUC6260_HSYNC_CHANGED_CB(WRITELINE("huc6270", huc6270_device, hsync_changed)) + MCFG_DEVICE_ADD( "huc6270", HUC6270, 0 ) + MCFG_HUC6270_VRAM_SIZE(0x10000) + MCFG_HUC6270_IRQ_CHANGED_CB(INPUTLINE("maincpu", 0)) SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); - DISCRETE(config, m_discrete, uapce_discrete).add_route(0, "rspeaker", 1.00); -} + MCFG_DEVICE_ADD("discrete", DISCRETE, uapce_discrete) + MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) +MACHINE_CONFIG_END ROM_START(blazlaz) ROM_REGION( 0x0a0000, "maincpu", 0 ) |