Previous 199869 Revisions Next

r17752 Sunday 9th September, 2012 at 12:58:21 UTC by Curt Coder
(MESS) Cleanup. (nw)
[src/mess/machine]c1551.c c1551.h c64exp.c c64exp.h plus4exp.c plus4exp.h vic1010.c vic1010.h vic10exp.c vic10exp.h vic20exp.c vic20exp.h

trunk/src/mess/machine/plus4exp.c
r17751r17752
347347
348348
349349//-------------------------------------------------
350//  screen_update -
351//-------------------------------------------------
352
353UINT32 plus4_expansion_slot_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
354{
355   bool value = false;
356
357   if (m_cart != NULL)
358   {
359      value = m_cart->plus4_screen_update(screen, bitmap, cliprect);
360   }
361
362   return value;
363}
364
365
366//-------------------------------------------------
367350//  breset_w - buffered reset write
368351//-------------------------------------------------
369352
trunk/src/mess/machine/plus4exp.h
r17751r17752
165165   // runtime
166166   virtual UINT8 plus4_cd_r(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h) { return data; };
167167   virtual void plus4_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h) { };
168   virtual UINT32 plus4_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { return 0; }
169168   virtual void plus4_breset_w(int state) { };
170169
171170protected:
trunk/src/mess/machine/vic20exp.c
r17751r17752
357357   }
358358}
359359
360
361//-------------------------------------------------
362//  screen_update -
363//-------------------------------------------------
364
365UINT32 vic20_expansion_slot_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
366{
367   bool value = false;
368
369   if (m_cart != NULL)
370   {
371      value = m_cart->vic20_screen_update(screen, bitmap, cliprect);
372   }
373
374   return value;
375}
376
377360WRITE_LINE_MEMBER( vic20_expansion_slot_device::port_res_w ) { if (m_cart != NULL) m_cart->vic20_res_w(state); }
378361
379362WRITE_LINE_MEMBER( vic20_expansion_slot_device::irq_w ) { m_out_irq_func(state); }
trunk/src/mess/machine/vic20exp.h
r17751r17752
159159   // runtime
160160   virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) { return data; };
161161   virtual void vic20_cd_w(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) { };
162   virtual UINT32 vic20_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { return 0; }
163162   virtual void vic20_res_w(int state) { };
164163
165164   vic20_expansion_slot_device *m_slot;
trunk/src/mess/machine/vic1010.c
r17751r17752
136136
137137
138138//-------------------------------------------------
139//  vic20_screen_update - screen update
140//-------------------------------------------------
141
142UINT32 vic1010_device::vic20_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
143{
144   UINT32 data = 0;
145
146   for (int i = 0; i < MAX_SLOTS; i++)
147   {
148      data |= m_expansion_slot[i]->screen_update(screen, bitmap, cliprect);
149   }
150
151   return data;
152}
153
154
155//-------------------------------------------------
156139//  vic20_res_w - reset write
157140//-------------------------------------------------
158141
trunk/src/mess/machine/vic1010.h
r17751r17752
5656   // device_vic20_expansion_card_interface overrides
5757   virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3);
5858   virtual void vic20_cd_w(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3);
59   virtual UINT32 vic20_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6059   virtual void vic20_res_w(int state);
6160
6261private:
trunk/src/mess/machine/c1551.c
r17751r17752
602602
603603
604604//-------------------------------------------------
605//  plus4_screen_update - screen update
606//-------------------------------------------------
607
608UINT32 c1551_device::plus4_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
609{
610   return m_exp->screen_update(screen, bitmap, cliprect);
611}
612
613
614//-------------------------------------------------
615605//  plus4_breset_w - buffered reset write
616606//-------------------------------------------------
617607
trunk/src/mess/machine/c1551.h
r17751r17752
7979    // device_plus4_expansion_card_interface overrides
8080   virtual UINT8 plus4_cd_r(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h);
8181   virtual void plus4_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h);
82   virtual UINT32 plus4_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
8382   virtual void plus4_breset_w(int state);
8483
8584private:
trunk/src/mess/machine/c64exp.c
r17751r17752
417417}
418418
419419
420//-------------------------------------------------
421//  screen_update -
422//-------------------------------------------------
423
424UINT32 c64_expansion_slot_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
425{
426   bool value = false;
427
428   if (m_cart != NULL)
429   {
430      value = m_cart->c64_screen_update(screen, bitmap, cliprect);
431   }
432
433   return value;
434}
435
436420WRITE_LINE_MEMBER( c64_expansion_slot_device::port_reset_w ) { if (m_cart != NULL) m_cart->c64_reset_w(state); }
437421
438422
trunk/src/mess/machine/c64exp.h
r17751r17752
173173   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram) { return m_game; }
174174   virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return m_exrom; }
175175   virtual void c64_reset_w(int state) { };
176   virtual UINT32 c64_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { return 0; }
177176
178177   c64_expansion_slot_device *m_slot;
179178
trunk/src/mess/machine/vic10exp.c
r17751r17752
279279
280280
281281//-------------------------------------------------
282//  screen_update -
283//-------------------------------------------------
284
285UINT32 vic10_expansion_slot_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
286{
287   bool value = false;
288
289   if (m_cart != NULL)
290   {
291      value = m_cart->vic10_screen_update(screen, bitmap, cliprect);
292   }
293
294   return value;
295}
296
297
298//-------------------------------------------------
299282//  cd_r - cartridge data read
300283//-------------------------------------------------
301284
trunk/src/mess/machine/vic10exp.h
r17751r17752
167167   virtual void vic10_p0_w(int state) { };
168168   virtual void vic10_sp_w(int state) { };
169169   virtual void vic10_cnt_w(int state) { };
170   virtual UINT32 vic10_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { return 0; }
171170   virtual void vic10_res_w(int state) { };
172171
173172   vic10_expansion_slot_device *m_slot;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team