summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stm8/peep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stm8/peep.c b/src/stm8/peep.c
index ba87055dc..3b3ce6397 100644
--- a/src/stm8/peep.c
+++ b/src/stm8/peep.c
@@ -588,6 +588,9 @@ stm8MightRead(const lineNode *pl, const char *what)
if (!extra)
{
+ if (ISINST (pl->line, "add") && !argCont(pl->line + 4, 'a') && !argCont (strchr (pl->line, ','), 'a'))
+ return FALSE;
+
if (ISINST (pl->line, "adc")
|| ISINST (pl->line, "add")
|| ISINST (pl->line, "and")
@@ -771,6 +774,9 @@ stm8SurelyWrites(const lineNode *pl, const char *what)
if (!extra)
{
+ if (ISINST (pl->line, "add") && !argCont(pl->line + 4, 'a') && !argCont (strchr (pl->line, ','), 'a'))
+ return FALSE;
+
if (ISINST (pl->line, "adc")
|| ISINST (pl->line, "add")
|| ISINST (pl->line, "and")