Previous 199869 Revisions Next

r17881 Friday 14th September, 2012 at 09:07:10 UTC by Miodrag Milanović
state members do not override legacy start/resets (no whatsnew)
[src/mame/drivers]megatech.c nss.c

trunk/src/mame/drivers/megatech.c
r17880r17881
509509   MCFG_CPU_PROGRAM_MAP(megatech_bios_map)
510510   MCFG_CPU_IO_MAP(megatech_bios_portmap)
511511
512   MCFG_MACHINE_RESET(0)
512513   MCFG_MACHINE_RESET_OVERRIDE(mtech_state,mtnew)
513514
515   MCFG_VIDEO_START(0)
514516   MCFG_VIDEO_START_OVERRIDE(mtech_state,mtnew)
515517
516518   MCFG_DEFAULT_LAYOUT(layout_dualhovu)
trunk/src/mame/drivers/nss.c
r17880r17881
327327   DECLARE_DRIVER_INIT(nss);
328328
329329   DECLARE_CUSTOM_INPUT_MEMBER(game_over_flag_r);
330   DECLARE_MACHINE_START(nss);
331   DECLARE_MACHINE_RESET(nss);
330   virtual void machine_start();
331   virtual void machine_reset();
332332};
333333
334334
r17880r17881
619619   AM_RANGE(0x07, 0x07) AM_WRITE(port_07_w)
620620ADDRESS_MAP_END
621621
622MACHINE_START_MEMBER(nss_state,nss)
622void nss_state::machine_start()
623623{
624624
625625   MACHINE_START_CALL_LEGACY(snes);
r17880r17881
800800
801801   MCFG_QUANTUM_PERFECT_CPU("maincpu")
802802
803   MCFG_MACHINE_START( snes )
804   MCFG_MACHINE_RESET( snes )
805
806803   /* video hardware */
807804   MCFG_VIDEO_START( snes )
808805
r17880r17881
825822      device->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
826823}
827824
828MACHINE_RESET_MEMBER(nss_state,nss)
825void nss_state::machine_reset()
829826{
830827
831828   MACHINE_RESET_CALL_LEGACY( snes );
r17880r17881
855852   MCFG_RP5H01_ADD("rp5h01")
856853   MCFG_M6M80011AP_ADD("m6m80011ap")
857854
858   MCFG_MACHINE_START_OVERRIDE(nss_state, nss )
859   MCFG_MACHINE_RESET_OVERRIDE(nss_state, nss )
860
861855   /* TODO: the screen should actually superimpose, but for the time being let's just separate outputs */
862856   MCFG_DEFAULT_LAYOUT(layout_dualhsxs)
863857

Previous 199869 Revisions Next


© 1997-2024 The MAME Team