Previous 199869 Revisions Next

r32385 Thursday 25th September, 2014 at 18:53:57 UTC by Osso
Further removal of leftover code (nw)
[src/mame/audio]mw8080bw.c
[src/mame/drivers]mw8080bw.c namcofl.c
[src/mame/includes]mpu4.h mw8080bw.h n64.h namcofl.h

trunk/src/mame/drivers/mw8080bw.c
r32384r32385
863863
864864void mw8080bw_state::maze_update_discrete()
865865{
866   maze_write_discrete(m_discrete, m_maze_tone_timing_state);
866   maze_write_discrete(m_maze_tone_timing_state);
867867}
868868
869869
870870TIMER_CALLBACK_MEMBER(mw8080bw_state::maze_tone_timing_timer_callback)
871871{
872872   m_maze_tone_timing_state = !m_maze_tone_timing_state;
873   maze_write_discrete(m_discrete, m_maze_tone_timing_state);
873   maze_write_discrete(m_maze_tone_timing_state);
874874}
875875
876876
trunk/src/mame/drivers/namcofl.c
r32384r32385
788788   ROM_LOAD("finalapr.nv",   0x000000, 0x2000, CRC(d51d65fe) SHA1(8a0a523cb6ba2880951e41ca04db23584f0a108c) )
789789ROM_END
790790
791static void namcofl_common_init(running_machine &machine)
791void namcofl_state::common_init()
792792{
793   namcofl_state *state = machine.driver_data<namcofl_state>();
794   state->m_workram = auto_alloc_array(machine, UINT32, 0x100000/4);
793   m_workram = auto_alloc_array(machine(), UINT32, 0x100000/4);
795794
796   state->membank("bank1")->set_base(state->memregion("maincpu")->base() );
797   state->membank("bank2")->set_base(state->m_workram );
795   membank("bank1")->set_base(memregion("maincpu")->base() );
796   membank("bank2")->set_base(m_workram );
798797}
799798
800799DRIVER_INIT_MEMBER(namcofl_state,speedrcr)
801800{
802   namcofl_common_init(machine());
801   common_init();
803802   m_gametype = NAMCOFL_SPEED_RACER;
804803}
805804
806805DRIVER_INIT_MEMBER(namcofl_state,finalapr)
807806{
808   namcofl_common_init(machine());
807   common_init();
809808   m_gametype = NAMCOFL_FINAL_LAP_R;
810809}
811810
trunk/src/mame/audio/mw8080bw.c
r32384r32385
557557MACHINE_CONFIG_END
558558
559559
560void maze_write_discrete(discrete_device *device, UINT8 maze_tone_timing_state)
560void mw8080bw_state::maze_write_discrete(UINT8 maze_tone_timing_state)
561561{
562562   /* controls need to be active low */
563   int controls = ~device->machine().root_device().ioport("IN0")->read() & 0xff;
563   int controls = ~ioport("IN0")->read() & 0xff;
564564
565   address_space &space = device->machine().driver_data()->generic_space();
566   device->write(space, MAZE_TONE_TIMING, maze_tone_timing_state);
567   device->write(space, MAZE_P1_DATA, controls & 0x0f);
568   device->write(space, MAZE_P2_DATA, (controls >> 4) & 0x0f);
569   device->write(space, MAZE_JOYSTICK_IN_USE, controls != 0xff);
565   address_space &space = machine().driver_data()->generic_space();
566   m_discrete->write(space, MAZE_TONE_TIMING, maze_tone_timing_state);
567   m_discrete->write(space, MAZE_P1_DATA, controls & 0x0f);
568   m_discrete->write(space, MAZE_P2_DATA, (controls >> 4) & 0x0f);
569   m_discrete->write(space, MAZE_JOYSTICK_IN_USE, controls != 0xff);
570570
571571   /* The coin line is connected directly to the discrete circuit. */
572572   /* We can't really do that, so updating it with the tone timing is close enough. */
573573   /* A better option might be to update it at vblank or set a timer to do it. */
574574   /* The only noticeable difference doing it here, is that the controls don't */
575575   /* immediately start making tones if pressed right after the coin is inserted. */
576   device->write(space, MAZE_COIN, (~device->machine().root_device().ioport("IN1")->read() >> 3) & 0x01);
576   m_discrete->write(space, MAZE_COIN, (~ioport("IN1")->read() >> 3) & 0x01);
577577}
578578
579579
trunk/src/mame/includes/mpu4.h
r32384r32385
308308   optional_device<palette_device> m_palette;
309309};
310310
311/* mpu4.c, used by mpu4vid.c */
312extern void mpu4_config_common(running_machine &machine);
313extern void mpu4_stepper_reset(mpu4_state *state);
314
315311MACHINE_CONFIG_EXTERN( mpu4_common );
316312MACHINE_CONFIG_EXTERN( mpu4_common2 );
317313
trunk/src/mame/includes/n64.h
r32384r32385
281281extern UINT32 *rsp_dmem;
282282
283283extern void dp_full_sync(running_machine &machine);
284extern void signal_rcp_interrupt(running_machine &machine, int interrupt);
285284
286285#endif
trunk/src/mame/includes/mw8080bw.h
r32384r32385
187187   DECLARE_WRITE8_MEMBER(invad2ct_audio_3_w);
188188   DECLARE_WRITE8_MEMBER(invad2ct_audio_4_w);
189189   void maze_update_discrete();
190   void maze_write_discrete(UINT8 maze_tone_timing_state);
190191   UINT8 vpos_to_vysnc_chain_counter( int vpos );
191192   int vysnc_chain_counter_to_vpos( UINT8 counter, int vblank );
192193   void mw8080bw_create_interrupt_timer(  );
r32384r32385
244245MACHINE_CONFIG_EXTERN( invaders );
245246extern const char layout_invaders[];
246247
247UINT8 tornbase_get_cabinet_type(running_machine &machine);
248
249int invaders_is_cabinet_cocktail(running_machine &machine);
250
251248/*----------- defined in audio/mw8080bw.c -----------*/
252249
253250
r32384r32385
260257MACHINE_CONFIG_EXTERN( zzzap_audio );
261258
262259MACHINE_CONFIG_EXTERN( maze_audio );
263void maze_write_discrete(discrete_device *device, UINT8 maze_tone_timing_state);
264260
265261MACHINE_CONFIG_EXTERN( boothill_audio );
266262
trunk/src/mame/includes/namcofl.h
r32384r32385
6767   TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq0_cb);
6868   TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq2_cb);
6969   TIMER_DEVICE_CALLBACK_MEMBER(mcu_adc_cb);
70   void common_init();
7071};

Previous 199869 Revisions Next


© 1997-2024 The MAME Team