Previous 199869 Revisions Next

r21630 Wednesday 6th March, 2013 at 12:38:02 UTC by Nathan Woods
Fixed bug in 6x09 DAA instruction; finalizr (and probably other games) now
handle score correctly. (nw)
[src/emu/cpu/m6809]m6809inl.h

trunk/src/emu/cpu/m6809/m6809inl.h
r21629r21630
201201inline ATTR_FORCE_INLINE void m6809_base_device::daa()
202202{
203203   UINT16 t, cf = 0;
204   UINT8 msn = m_d.b.h & 0xf0;
205   UINT8 lsn = m_d.b.l & 0x0f;
204   UINT8 msn = m_d.b.h & 0xF0;
205   UINT8 lsn = m_d.b.h & 0x0F;
206206
207207   // compute the carry
208208   if (lsn > 0x09 || m_cc & CC_H)   cf |= 0x06;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team