aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-14 18:44:01 +1300
committerAndrew Chambers <[email protected]>2021-10-14 18:44:01 +1300
commita4289ade4c65730124e10849b1544db374cf5062 (patch)
treea58049fa8b6426db7cde7f7a0693883378e67046 /main.c
parent311a0567533bd9ac207ffde364990b0b4a27dd49 (diff)
Fix incorrect order in 3 address multiplication.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 205f58b..42950c3 100644
--- a/main.c
+++ b/main.c
@@ -950,7 +950,7 @@ static void assemble(void) {
imm = &v->instr.arg3->imm;
opcode = 0x69;
prefix = ((v->instr.variant - 14) % 3) == 0 ? 0x66 : -1;
- assemblerrm(&v->instr, prefix, opcode, 0);
+ assemblerrm(&v->instr, prefix, opcode, 1);
assemblereloc(imm->v.l, imm->v.c, imm->nbytes, R_X86_64_32);
}
break;