Previous 199869 Revisions Next

r21912 Sunday 17th March, 2013 at 17:10:46 UTC by R. Belmont
Fix compile problems on some OS X versions (nw)
[src/emu/cpu/m6809]konami.c konami.h konami.ops

trunk/src/emu/cpu/m6809/konami.ops
r21911r21912
517517      else
518518         m_cc &= ~CC_C;
519519
520      m_d.w = set_flags<UINT16>(CC_NZ, safe_shift_right<UINT16>(m_d.w, m_temp.b.l));
520      m_d.w = set_flags<UINT16>(CC_NZ, safe_shift_right_unsigned<UINT16>(m_d.w, m_temp.b.l));
521521   }
522522   eat(1);
523523   return;
trunk/src/emu/cpu/m6809/konami.c
r21911r21912
249249
250250
251251//-------------------------------------------------
252//  safe_shift_right_unsigned
253//-------------------------------------------------
254
255template<class T> T konami_cpu_device::safe_shift_right_unsigned(T value, UINT32 shift)
256{
257   T result;
258
259   if (shift < (sizeof(T) * 8))
260      result = value >> shift;
261   else
262      result = 0;
263
264   return result;
265}
266
267//-------------------------------------------------
252268//  safe_shift_left
253269//-------------------------------------------------
254270
trunk/src/emu/cpu/m6809/konami.h
r21911r21912
6767
6868   // miscellaneous
6969   template<class T> T safe_shift_right(T value, UINT32 shift);
70   template<class T> T safe_shift_right_unsigned(T value, UINT32 shift);
7071   template<class T> T safe_shift_left(T value, UINT32 shift);
7172   void set_lines(UINT8 data);
7273   void execute_one();

Previous 199869 Revisions Next


© 1997-2024 The MAME Team