Previous 199869 Revisions Next

r20849 Friday 8th February, 2013 at 22:13:49 UTC by Wilbert Pol
(MESS) gba.c: switched ioport tagmap lookup to member variable. (nw)
[src/mess/drivers]gba.c
[src/mess/includes]gba.h

trunk/src/mess/drivers/gba.c
r20848r20849
916916      case 0x0130/4:
917917         if( (mem_mask) & 0x0000ffff )   // KEYINPUT
918918         {
919            retval = ioport("IN0")->read();
919            retval = m_io_in0->read();
920920         }
921921         else if( (mem_mask) & 0xffff0000 )
922922         {
trunk/src/mess/includes/gba.h
r20848r20849
147147      m_radac(*this, "direct_a_right"),
148148      m_lbdac(*this, "direct_b_left"),
149149      m_rbdac(*this, "direct_b_right"),
150      m_gbsound(*this, "custom"){ }
150      m_gbsound(*this, "custom"),
151      m_io_in0(*this, "IN0")
152   { }
151153
152154   required_device<cpu_device> m_maincpu;
153155   required_shared_ptr<UINT32> m_gba_pram;
r20848r20849
279281   TIMER_CALLBACK_MEMBER(perform_scan);
280282   void gba_machine_stop();
281283   DECLARE_DEVICE_IMAGE_LOAD_MEMBER(gba_cart);
284
285protected:
286   required_ioport m_io_in0;
282287};
283288
284289/*----------- defined in video/gba.c -----------*/

Previous 199869 Revisions Next


© 1997-2024 The MAME Team