summaryrefslogtreecommitdiff
path: root/cgiwas.c
diff options
context:
space:
mode:
authorJohn van Groningen2003-11-18 15:32:57 +0000
committerJohn van Groningen2003-11-18 15:32:57 +0000
commitbed3e50fe6be5c52c367c43473636bb11b961b63 (patch)
tree54423eec4f5ea8683c52ad5557414e9ac29f0ce9 /cgiwas.c
parentdon't use negative number for TEXT_LABEL_ID and DATA_LABEL_ID, because <0 mea... (diff)
fix order of arguments of a generated lea instruction
Diffstat (limited to 'cgiwas.c')
-rw-r--r--cgiwas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgiwas.c b/cgiwas.c
index 7b85409..a31d06e 100644
--- a/cgiwas.c
+++ b/cgiwas.c
@@ -1617,10 +1617,10 @@ static void w_as_div_rem_i_instruction (struct instruction *instruction,int comp
index_registers.d_reg.r=s_reg2;
w_as_opcode (intel_asm ? "lea" : "leal");
- if (!intel_asm)
+ if (intel_asm)
w_as_register_comma (sd_reg);
w_as_indexed (0,&index_registers);
- if (intel_asm)
+ if (!intel_asm)
w_as_comma_register (sd_reg);
w_as_newline();
} else {