Previous 15994 Revisions Next

r12261 Monday 18th July, 2011 at 15:07:59 UTC by Curt Coder
[C64] Cartridge WIP. (nw)
[src/mess/machine]c64exp.c c64exp.h

src/mess/machine/c64exp.c
r12260r12261
179179
180180const char * c64_expansion_slot_device::get_default_card(emu_options &options) const
181181{
182   if (strlen(options.value(m_instance_name)) > 0)
183   {
184      return "standard";
185   }
186
187   return m_default_card;   
182   return software_get_default_slot(options, this, m_default_card, "standard");
188183}
189184
190185
r12260r12261
293288
294289
295290//-------------------------------------------------
291//  game_r - GAME read
292//-------------------------------------------------
293
294READ_LINE_MEMBER( c64_expansion_slot_device::game_r )
295{
296   int state = 1;
297   
298   if (m_cart != NULL)
299   {
300      state = m_cart->c64_game_r();
301   }
302   
303   return state;
304}
305
306
307//-------------------------------------------------
308//  game_r - EXROM read
309//-------------------------------------------------
310
311READ_LINE_MEMBER( c64_expansion_slot_device::exrom_r )
312{
313   int state = 1;
314   
315   if (m_cart != NULL)
316   {
317      state = m_cart->c64_exrom_r();
318   }
319   
320   return state;
321}
322
323
324//-------------------------------------------------
296325//  screen_update -
297326//-------------------------------------------------
298327
src/mess/machine/c64exp.h
r12260r12261
127127   DECLARE_WRITE8_MEMBER( io1_w );
128128   DECLARE_READ8_MEMBER( io2_r );
129129   DECLARE_WRITE8_MEMBER( io2_w );
130   DECLARE_READ_LINE_MEMBER( game_r );
131   DECLARE_READ_LINE_MEMBER( exrom_r );
130132
131133   DECLARE_WRITE_LINE_MEMBER( irq_w );
132134   DECLARE_WRITE_LINE_MEMBER( nmi_w );

Previous 15994 Revisions Next


© 1998-2018 The MESS Team