Pārlūkot izejas kodu

made arg_error dependent on DEBUG; fixed cmp instruction in as_table

ceriel 35 gadi atpakaļ
vecāks
revīzija
fa9f197afd
3 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 4 0
      mach/i86/ce/as_table
  2. 2 0
      mach/i86/ce/mach.c
  3. 4 0
      mach/i86/ce/mach.h

+ 4 - 0
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).

+ 2 - 0
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;
 

+ 4 - 0
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