Previous 199869 Revisions Next

r31996 Monday 8th September, 2014 at 18:36:12 UTC by Wilbert Pol
(MESS) sms.c: Fixed lphaser regression.  [Enik Land]
[src/emu/bus/sega8]sega8_slot.c
[src/mess/machine]sms.c

trunk/src/emu/bus/sega8/sega8_slot.c
r31995r31996
246246      { 0x54, 0x4d, 0x52, 0x20, 0x53, 0x45, 0x47, 0x41, 0x41, 0x4c, 0x15, 0x4a, 0x01, 0x80, 0x00, 0x4f }
247247   };
248248
249   int xoff = 44;
249   int xoff = 36;
250250
251251   if (size >= 0x8000)
252252   {
253253      if (!memcmp(&rom[0x7ff0], signatures[0], 16) || !memcmp(&rom[0x7ff0], signatures[1], 16))
254         xoff = 34;
254         xoff = 26;
255255
256256      if (!memcmp(&rom[0x7ff0], signatures[2], 16))
257         xoff = 44;
257         xoff = 36;
258258
259259      if (!memcmp(&rom[0x7ff0], signatures[3], 16))
260         xoff = 40;
260         xoff = 32;
261261
262262      if (!memcmp(&rom[0x7ff0], signatures[4], 16))
263         xoff = 38;
263         xoff = 30;
264264
265265      if (!memcmp(&rom[0x7ff0], signatures[5], 16))
266         xoff = 47;
266         xoff = 39;
267267
268268      if (!memcmp(&rom[0x7ff0], signatures[6], 16))
269         xoff = 46;
269         xoff = 38;
270270   }
271271
272272   m_cart->set_lphaser_xoffs(xoff);
trunk/src/mess/machine/sms.c
r31995r31996
709709   // Set offset for Light Phaser
710710   if (!m_is_mark_iii)
711711   {
712      m_lphaser_x_offs = 44;
712      m_lphaser_x_offs = 36;
713713
714714      if (m_mem_device_enabled & ENABLE_CART)
715715         m_lphaser_x_offs = m_cartslot->m_cart->get_lphaser_xoffs();

Previous 199869 Revisions Next


© 1997-2024 The MAME Team