From 9dcae8fcd0d151ba608f575ac5c3bc666f7b1c23 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 7 Feb 1989 11:42:28 +0000 Subject: [PATCH] made arg_error dependent on DEBUG; fixed cmp instruction in as_table --- mach/i86/ce/as_table | 4 ++++ mach/i86/ce/mach.c | 2 ++ mach/i86/ce/mach.h | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/mach/i86/ce/as_table b/mach/i86/ce/as_table index dbc400c21..251422d08 100644 --- a/mach/i86/ce/as_table +++ b/mach/i86/ce/as_table @@ -36,6 +36,10 @@ cmp dst:REG, src:EADDR ==> @text1( 0x3b); ... dst:ACCU, src:DATA ==> @text1( 0x3d); @text2( %$(src->expr)). +... dst:EADDR, src:DATA ==> @text1( 0x81); + mod_RM(7,dst); + @text2( %$(src->expr)). + cwd ==> @text1( 0x99). dec dst:REG ==> R53( 9, dst->reg). diff --git a/mach/i86/ce/mach.c b/mach/i86/ce/mach.c index a607b4ff4..f34b673ce 100644 --- a/mach/i86/ce/mach.c +++ b/mach/i86/ce/mach.c @@ -3,12 +3,14 @@ #include "back.h" #include "mach.h" +#ifdef DEBUG arg_error( s, arg) char *s; int arg; { fprint( STDERR, "arg_error %s %d\n", s, arg); } +#endif int push_waiting = FALSE; diff --git a/mach/i86/ce/mach.h b/mach/i86/ce/mach.h index 944b262c7..5860f682e 100644 --- a/mach/i86/ce/mach.h +++ b/mach/i86/ce/mach.h @@ -24,3 +24,7 @@ #define clean_push_buf() if(push_waiting){text1(0x50);push_waiting=FALSE;} #define assign( l, r) l = r extern int push_waiting; + +#ifndef DEBUG +#define arg_error(s,i) +#endif -- 2.34.1