Previous 199869 Revisions Next

r32484 Wednesday 1st October, 2014 at 16:08:34 UTC by Osso
Random small cleanups (nw)
[src/mame/drivers]bfm_sc4h.c segas32.c
[src/mame/includes]bfm_sc45.h segas32.h
[src/mame/machine]segas32.c

trunk/src/mame/drivers/bfm_sc4h.c
r32483r32484
6161
6262
6363
64UINT8 sc4_state::read_input_matrix(running_machine &machine, int row)
64UINT8 sc4_state::read_input_matrix(int row)
6565{
6666   ioport_port* portnames[16] = { m_io1, m_io2, m_io3, m_io4, m_io5, m_io6, m_io7, m_io8, m_io9, m_io10, m_io11, m_io12 };
6767   UINT8 value;
r32483r32484
170170
171171               if (mem_mask&0x00ff)
172172               {
173                  retvalue = read_input_matrix(machine(), (addr & 0x00f0)>>4);
173                  retvalue = read_input_matrix((addr & 0x00f0)>>4);
174174               }
175175               return retvalue;
176176            }
trunk/src/mame/drivers/segas32.c
r32483r32484
722722   system32_set_vblank(1);
723723   machine().scheduler().timer_set(m_screen->time_until_pos(0), timer_expired_delegate(FUNC(segas32_state::end_of_vblank_int),this));
724724   if (m_system32_prot_vblank)
725      (*m_system32_prot_vblank)(&device);
725      (this->*m_system32_prot_vblank)();
726726}
727727
728728
r32483r32484
46904690
46914691   /* install protection handlers */
46924692   m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0xa00000, 0xa7ffff, read16_delegate(FUNC(segas32_state::darkedge_protection_r),this), write16_delegate(FUNC(segas32_state::darkedge_protection_w),this));
4693   m_system32_prot_vblank = darkedge_fd1149_vblank;
4693   m_system32_prot_vblank = &segas32_state::darkedge_fd1149_vblank;
46944694}
46954695
46964696DRIVER_INIT_MEMBER(segas32_state,dbzvrvs)
r32483r32484
47354735   m_maincpu->space(AS_PROGRAM).install_read_handler(0x801000, 0x801003, read16_delegate(FUNC(segas32_state::dual_pcb_masterslave),this));
47364736
47374737//  m_maincpu->space(AS_PROGRAM).install_write_handler(0x800048, 0x800049, write16_delegate(FUNC(segas32_state::f1en_comms_echo_w),this));
4738   m_system32_prot_vblank = f1lap_fd1149_vblank;
4738   m_system32_prot_vblank = &segas32_state::f1lap_fd1149_vblank;
47394739
47404740   m_sw1_output = &segas32_state::f1lap_sw1_output;
47414741}
trunk/src/mame/machine/segas32.c
r32483r32484
203203 ******************************************************************************
204204 ******************************************************************************/
205205
206void darkedge_fd1149_vblank(device_t *device)
206void segas32_state::darkedge_fd1149_vblank()
207207{
208   address_space &space = device->memory().space(AS_PROGRAM);
208   address_space &space = m_maincpu->space(AS_PROGRAM);
209209
210210   space.write_word(0x20f072, 0);
211211   space.write_word(0x20f082, 0);
r32483r32484
239239 ******************************************************************************
240240 ******************************************************************************/
241241
242void f1lap_fd1149_vblank(device_t *device)
242void segas32_state::f1lap_fd1149_vblank()
243243{
244   address_space &space = device->memory().space(AS_PROGRAM);
244   address_space &space = m_maincpu->space(AS_PROGRAM);
245245
246246   space.write_byte(0x20F7C6, 0);
247247
trunk/src/mame/includes/segas32.h
r32483r32484
9797   UINT8 m_sprite_control_latched[8];
9898   UINT8 m_sprite_control[8];
9999   UINT32 *m_spriteram_32bit;
100   void (*m_system32_prot_vblank)(device_t *device);
100   typedef void (segas32_state::*prot_vblank_func)();
101   prot_vblank_func m_system32_prot_vblank;
101102   int m_print_count;
102103   DECLARE_WRITE16_MEMBER(ga2_dpram_w);
103104   DECLARE_READ16_MEMBER(ga2_dpram_r);
r32483r32484
269270   DECLARE_WRITE_LINE_MEMBER(ym3438_irq_handler);
270271   void signal_sound_irq(int which);
271272   void clear_sound_irq(int which);
273   void darkedge_fd1149_vblank();
274   void f1lap_fd1149_vblank();
272275};
273276
274277/*----------- defined in machine/segas32.c -----------*/
275void darkedge_fd1149_vblank(device_t *device);
276void f1lap_fd1149_vblank(device_t *device);
277278extern const UINT8 ga2_v25_opcode_table[];
trunk/src/mame/includes/bfm_sc45.h
r32483r32484
141141
142142   UINT16 m_mainram[0x10000/2];
143143
144   UINT8 read_input_matrix(running_machine &machine, int row);
144   UINT8 read_input_matrix(int row);
145145
146146
147147   DECLARE_WRITE_LINE_MEMBER(bfmdm01_busy);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team