From 9642b191547366596fdf1fa669dae6cc3f41f1c6 Mon Sep 17 00:00:00 2001 From: edmccard Date: Thu, 5 Apr 2012 01:49:27 -0400 Subject: [PATCH] DCM flag fix --- src/d6502/nmosundoc.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d6502/nmosundoc.d b/src/d6502/nmosundoc.d index 9c78d3a..5340abb 100644 --- a/src/d6502/nmosundoc.d +++ b/src/d6502/nmosundoc.d @@ -137,8 +137,9 @@ class NmosUndoc(bool strict, bool cumulative) : NmosBase!(strict, cumulative) static string RMW_Compare(string action1, string action2) { return "poke(primaryAddress, (readVal = read(primaryAddress)));\n" ~ - "writeFinal(primaryAddress, flag.zero_ = flag.negative_ = " ~ + "writeFinal(primaryAddress, " ~ "(writeVal = " ~ action1 ~ "(readVal)));\n" ~ + "flag.zero_ = flag.negative_ = " ~ "compare(" ~ action2 ~ ", writeVal);\n"; }