Previous 199869 Revisions Next

r20796 Thursday 7th February, 2013 at 11:37:17 UTC by Sandro Ronco
(MESS) small cleanups. (nw)
[src/mess/drivers]geniusiq.c uzebox.c

trunk/src/mess/drivers/uzebox.c
r20795r20796
4444   virtual void machine_start();
4545   virtual void machine_reset();
4646   void line_update();
47   int cart_load(device_image_interface &image);
4847   UINT32 screen_update_uzebox(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
4948   DECLARE_DEVICE_IMAGE_LOAD_MEMBER(uzebox_cart);
5049
r20795r20796
263262   return 0;
264263}
265264
266int uzebox_state::cart_load(device_image_interface &image)
265DEVICE_IMAGE_LOAD_MEMBER(uzebox_state,uzebox_cart)
267266{
268267   UINT8* rom = (UINT8*)(*memregion("maincpu"));
269268
r20795r20796
291290   return IMAGE_INIT_PASS;
292291}
293292
294DEVICE_IMAGE_LOAD_MEMBER(uzebox_state,uzebox_cart)
295{
296   return cart_load(image);
297}
298293
299294/****************************************************\
300295* Machine definition                                 *
trunk/src/mess/drivers/geniusiq.c
r20795r20796
234234   DECLARE_WRITE16_MEMBER(gfx_idx_w);
235235   void queue_input(UINT16 data);
236236   DECLARE_READ16_MEMBER(cart_state_r);
237   int cart_load(device_image_interface &image);
238   void cart_unload(device_image_interface &image);
239237
240238   DECLARE_READ16_MEMBER(unk0_r) { return 0; }
241239   DECLARE_READ16_MEMBER(unk_r) { return machine().rand(); }
r20795r20796
723721   m_mouse_gfx_posy = 0;
724722}
725723
726int geniusiq_state::cart_load(device_image_interface &image)
724DEVICE_IMAGE_LOAD_MEMBER(geniusiq_state,iq128_cart)
727725{
728726   if (image.software_entry() == NULL)
729727   {
r20795r20796
758756   return IMAGE_INIT_PASS;
759757}
760758
761void geniusiq_state::cart_unload(device_image_interface &image)
759DEVICE_IMAGE_UNLOAD_MEMBER(geniusiq_state,iq128_cart)
762760{
763761   memset(m_cart, 0xff, memregion("cart")->bytes());
764762   m_cart_state = IQ128_NO_CART;
765763}
766764
767DEVICE_IMAGE_LOAD_MEMBER(geniusiq_state,iq128_cart)
768{
769   return cart_load(image);
770}
771765
772DEVICE_IMAGE_UNLOAD_MEMBER(geniusiq_state,iq128_cart)
773{
774   cart_unload(image);
775}
776
777766static MACHINE_CONFIG_START( iq128, geniusiq_state )
778767   /* basic machine hardware */
779768   MCFG_CPU_ADD("maincpu", M68000, XTAL_32MHz/2) // The main crystal is at 32MHz, not sure whats the CPU freq

Previous 199869 Revisions Next


© 1997-2024 The MAME Team