summaryrefslogtreecommitdiff
path: root/sim/h8300/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/h8300/compile.c')
-rw-r--r--sim/h8300/compile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index 2db45ddb319..b18f7eac160 100644
--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -823,11 +823,11 @@ sim_resume (step)
res = rd + ea;
goto alu8;
-#define RD rd = fetch(&code->src);
-#define RD_EA rd = fetch(&code->dst); ea = fetch(&code->src);
+#define EA ea = fetch(&code->src);
+#define RD_EA ea = fetch(&code->src); rd = fetch(&code->dst);
- ALUOP (1, O_SUB, RD_EA; ea = -ea ; res = rd + ea);
- ALUOP (1, O_NEG, RD; ea = -ea ;rd = 0; res = rd + ea);
+ ALUOP (1, O_SUB, RD_EA; ea = -ea ; res = rd + ea);
+ ALUOP (1, O_NEG, EA; ea = -ea ; rd = 0; res = rd + ea);
case O(O_ADD,SB):
rd = GET_B_REG(code->dst.reg);