From 85348f653dd8cc0f181387dfd86b96359711bff7 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 11 Jan 1988 13:25:28 +0000 Subject: [PATCH] cas instruction was encoded wrong --- mach/m68020/as/mach4.c | 2 +- mach/m68020/as/mach5.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mach/m68020/as/mach4.c b/mach/m68020/as/mach4.c index 400f5e7a8..112b21fb1 100644 --- a/mach/m68020/as/mach4.c +++ b/mach/m68020/as/mach4.c @@ -195,7 +195,7 @@ instruction { T_EMIT2(03300 | $2, 0, 0, 0);} | CAS sizedef DREG ',' DREG ',' ea { T_EMIT2(04300 | (($2+0100)<<3) | mrg_2,0,0,0); - T_EMIT2($5 | ($3<<6),0,0,0); + T_EMIT2($3 | ($5<<6),0,0,0); ea_2($2, MEM|ALT); } | CAS2 sizedef DREG ':' DREG ',' DREG ':' DREG ',' diff --git a/mach/m68020/as/mach5.c b/mach/m68020/as/mach5.c index 0b4723bcd..a6746242d 100644 --- a/mach/m68020/as/mach5.c +++ b/mach/m68020/as/mach5.c @@ -25,7 +25,7 @@ emit_instr() { register instr_t *ip; - for (ip=instr; ipi_word)) { + for (ip=instr; ipi_word)) { #ifdef RELOCATION RELOMOVE(relonami, ip->i_relonami); if (ip->i_reloinfo) -- 2.34.1