diff options
author | 2018-12-03 22:53:38 -0500 | |
---|---|---|
committer | 2018-12-03 22:53:38 -0500 | |
commit | a4b24c24a2230e73e077ffd307bdb2a932c8325e (patch) | |
tree | 8fd0ce083d837facb7c06fffa6daa1da7e839d29 | |
parent | 785e40180d53f9d8d4d1780612882027fbb8c747 (diff) |
f8: Fix LNK opcode by preserving carry flag before clearing flags
-rw-r--r-- | src/devices/cpu/f8/f8.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/f8/f8.cpp b/src/devices/cpu/f8/f8.cpp index 79ed7b9644e..e0f86369a06 100644 --- a/src/devices/cpu/f8/f8.cpp +++ b/src/devices/cpu/f8/f8.cpp @@ -959,8 +959,9 @@ void f8_cpu_device::f8_com() ***************************************************/ void f8_cpu_device::f8_lnk() { + bool c = (m_w & C) != 0; CLR_OZCS(); - if (m_w & C) + if (c) m_a = do_add(m_a,1); SET_SZ(m_a); } |