Previous 199869 Revisions Next

r24091 Friday 5th July, 2013 at 17:30:07 UTC by David Haywood
minor correctness (nw)
[src/mame/drivers]tasman.c

trunk/src/mame/drivers/tasman.c
r24090r24091
106106READ32_MEMBER(kongambl_state::eeprom_r)
107107{
108108   //return machine().rand();
109   UINT32 retval = 0;
109110
111   if (ACCESSING_BITS_24_31)
112      retval |= ioport("IN0")->read() << 24; // bit 0 freezes the system if 1
113
110114   if (ACCESSING_BITS_16_23)
111      return ioport("EXT_PCB")->read() << 16; // ???
115      retval |= ioport("EXT_PCB")->read() << 16; // ???
112116
113   if (ACCESSING_BITS_24_31)
114      return ioport("IN0")->read() << 24; // bit 0 freezes the system if 1
117   if (ACCESSING_BITS_8_15)
118      retval |= ioport("IN2")->read() << 8; // ???
115119
116120   if (ACCESSING_BITS_0_7)
117      return (ioport("SYSTEM")->read());
121      retval |= (ioport("SYSTEM")->read());
118122
119   if (ACCESSING_BITS_8_15)
120      return ioport("IN2")->read() << 8; // ???
121123
122   printf("%08x\n",mem_mask);
124//   printf("%08x\n",mem_mask);
123125
124   return 0;
126   return retval;
125127}
126
127128WRITE32_MEMBER(kongambl_state::eeprom_w)
128129{
129130   if (ACCESSING_BITS_8_15)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team