Previous 199869 Revisions Next

r44494 Tuesday 26th January, 2016 at 17:08:18 UTC by David Haywood
Merge branch 'master' of https://github.com/mamedev/mame
[src/devices/bus/z88]z88.cpp
[src/mame/drivers]viper.cpp

trunk/src/devices/bus/z88/z88.cpp
r253005r253006
158158void z88cart_slot_device::call_unload()
159159{
160160   if (m_cart)
161      memset(m_cart->get_cart_base(), 0xff, m_cart->get_cart_size());
161   {
162      auto cart_size = m_cart->get_cart_size();
163      if (cart_size>0)
164         memset(m_cart->get_cart_base(), 0xff, cart_size);
165   }
162166
163167   // open the flap
164168   m_out_flp_cb(ASSERT_LINE);
trunk/src/mame/drivers/viper.cpp
r253005r253006
462462
463463static inline UINT64 read64be_with_32le_device_handler(read32_delegate handler, address_space &space, offs_t offset, UINT64 mem_mask)
464464{
465   UINT64 result;
466465   mem_mask = FLIPENDIAN_INT64(mem_mask);
467   result = read64le_with_32le_device_handler(handler, space, offset, mem_mask);
466   UINT64 result = 0;
467   if (ACCESSING_BITS_0_31)
468      result = (UINT64)(handler)(space, offset * 2, mem_mask & 0xffffffff);
469   if (ACCESSING_BITS_32_63)
470      result |= (UINT64)(handler)(space, offset * 2 + 1, mem_mask >> 32) << 32;
468471   return FLIPENDIAN_INT64(result);
469472}
470473
r253005r253006
473476{
474477   data = FLIPENDIAN_INT64(data);
475478   mem_mask = FLIPENDIAN_INT64(mem_mask);
476   write64le_with_32le_device_handler(handler, space, offset, data, mem_mask);
479   if (ACCESSING_BITS_0_31)
480      handler(space, offset * 2, data & 0xffffffff, mem_mask & 0xffffffff);
481   if (ACCESSING_BITS_32_63)
482      handler(space, offset * 2 + 1, data >> 32, mem_mask >> 32);
477483}
478484
479485/*****************************************************************************/


Previous 199869 Revisions Next


© 1997-2024 The MAME Team