Commit ae1817c6 authored by Michael Büsch's avatar Michael Büsch

Fix U-O-U for ER-only Us

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 57d2ef9b
......@@ -36,7 +36,7 @@ class AwlInsn_BEND(AwlInsn): #+cdef
s = self.cpu.statusWord
if pse.NER:
s.VKE &= pse.VKE
s.VKE |= pse.OR
s.VKE |= pse.OR
s.OR, s.STA, s.NER = pse.OR, 1, 1
def __run_UNB(self, pse):
......@@ -44,7 +44,7 @@ class AwlInsn_BEND(AwlInsn): #+cdef
s.VKE = s.VKE ^ 1
if pse.NER:
s.VKE &= pse.VKE
s.VKE |= pse.OR
s.VKE |= pse.OR
s.OR, s.STA, s.NER = pse.OR, 1, 1
def __run_OB(self, pse):
......
......@@ -40,4 +40,4 @@ class AwlInsn_U(AwlInsn): #+cdef
if s.NER:
s.STA, s.VKE = STA, ((s.VKE & STA) | s.OR)
else:
s.STA, s.VKE, s.NER = STA, STA, 1
s.STA, s.VKE, s.NER = STA, (STA | s.OR), 1
......@@ -40,4 +40,4 @@ class AwlInsn_UN(AwlInsn): #+cdef
if s.NER:
s.STA, s.VKE = STA, ((s.VKE & (STA ^ 1)) | s.OR)
else:
s.STA, s.VKE, s.NER = STA, (STA ^ 1), 1
s.STA, s.VKE, s.NER = STA, ((STA ^ 1) | s.OR), 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment