From 68dde7ef875ff65fbd2ef0f968edfd6cb4c11068 Mon Sep 17 00:00:00 2001 From: edmccard Date: Wed, 11 Apr 2012 23:31:02 -0400 Subject: [PATCH] Make undoc RMW opcodes pass new tests. --- src/d6502/nmosundoc.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d6502/nmosundoc.d b/src/d6502/nmosundoc.d index abea573..f0bf82a 100644 --- a/src/d6502/nmosundoc.d +++ b/src/d6502/nmosundoc.d @@ -130,7 +130,7 @@ class NmosUndoc(bool strict, bool cumulative) : NmosBase!(strict, cumulative) return "poke(primaryAddress, (readVal = read(primaryAddress)));\n" ~ "writeFinal(primaryAddress, flag.zero_ = flag.negative_ = " ~ "(writeVal = " ~ action1 ~ "(readVal)));\n" ~ - action2 ~ " writeVal;\n"; + "flag.zero_ = flag.negative_ = (" ~action2 ~ " writeVal);\n"; } static string RMW_Compare(string action1, string action2)