summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2013-03-06 12:38:02 +0000
committer Nathan Woods <npwoods@mess.org>2013-03-06 12:38:02 +0000
commitcdf305d5ec1c8a9b4f2166db412705c2acd45ff2 (patch)
treec0b7e1aba1b7eadf7e4e2d8cb8ca97b12b1d0a12 /src/emu/cpu
parenta623104489f1a2a302f5e4947a41c62d1ee77970 (diff)
Fixed bug in 6x09 DAA instruction; finalizr (and probably other games) now
handle score correctly. (nw)
Diffstat (limited to 'src/emu/cpu')
-rw-r--r--src/emu/cpu/m6809/m6809inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/m6809/m6809inl.h b/src/emu/cpu/m6809/m6809inl.h
index 94a883ce027..127a30a2453 100644
--- a/src/emu/cpu/m6809/m6809inl.h
+++ b/src/emu/cpu/m6809/m6809inl.h
@@ -201,8 +201,8 @@ inline ATTR_FORCE_INLINE void m6809_base_device::write_exgtfr_register(UINT8 reg
inline ATTR_FORCE_INLINE void m6809_base_device::daa()
{
UINT16 t, cf = 0;
- UINT8 msn = m_d.b.h & 0xf0;
- UINT8 lsn = m_d.b.l & 0x0f;
+ UINT8 msn = m_d.b.h & 0xF0;
+ UINT8 lsn = m_d.b.h & 0x0F;
// compute the carry
if (lsn > 0x09 || m_cc & CC_H) cf |= 0x06;