From 05db577e01ec5933b53d4dc921b82818edd35af8 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 30 Jul 1990 14:52:58 +0000 Subject: [PATCH] some fixes --- mach/m68020/top/table | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mach/m68020/top/table b/mach/m68020/top/table index da1c5c5e9..4bfce5149 100644 --- a/mach/m68020/top/table +++ b/mach/m68020/top/table @@ -19,6 +19,8 @@ DSREG {is_dsreg(VAL) }; /* data register */ AREG {is_areg(VAL) }; /* addressregister */ FPREG,FPREG2 {is_fpreg(VAL) }; /* fp register */ LAB,L1,L2 {VAL[0] == 'I' }; /* label */ +NO32 {no_part("div",VAL) && no_part("mul",VAL) && no_part(".l",VAL)}; + /* for move.w ... */ BITNO {TRUE }; %%; @@ -72,8 +74,8 @@ move.l DREG,A : ANY A,X {reg_subs_allowed(ANY) && !is_dreg(A) } -> move.l DREG,A : ANY DREG,X ; -move.w DREG,DREG2 : ANY A,DREG2 : move.w DREG2,DREG - {no_part(DREG2,A)} -> ANY A,DREG : move.w DREG,DREG2 ; +move.w DREG,DREG2 : NO32 A,DREG2 : move.w DREG2,DREG + {no_part(DREG2,A)} -> NO32 A,DREG : move.w DREG,DREG2 ; move.l DREG,DREG2 : ANY A,DREG2 : move.l DREG2,DREG {no_part(DREG2,A)} -> ANY A,DREG : move.l DREG,DREG2 ; @@ -198,7 +200,7 @@ int isshift_once(s, c1, c2) val -= pow; if (val == 0) { sprintf(c1, "%d", i <= 8 ? i : 8); - strcpy(c2, "%d", i <= 8 ? 0 : i - 8); + sprintf(c2, "%d", i <= 8 ? 0 : i - 8); return 1; } return 0; -- 2.34.1