1 #define RCSID4 "$Id: mach4.c,v 3.3 1994/06/24 12:57:48 ceriel Exp $"
4 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
5 * See the copyright notice in the ACK home directory, in the file "Copyright".
10 * Intel 8080 parsing rules
19 newrelo($2.typ, RELO1);
27 newrelo($2.typ, RELO2);
33 { emit1($1 | ($2 << 3));}
36 { if ($2 == M && $4 == M)
37 serror("register error");
38 emit1($1 | ($2 << 3) | $4);
42 { emit1($1 | ($2 << 3));
44 newrelo($4.typ, RELO1);
50 { emit1($1 | ($2 << 3));
52 newrelo($4.typ, RELO2);
61 { emit1($1 | ($2 << 3));}
65 emit1($1 | (low3($2) << 3));
70 if ($2 != B && $2 != D)
71 serror("register error");
72 emit1($1 | (($2 & 02) << 3));
77 serror("register error");
82 { if (($1 & ~07) != 0)
83 serror("register error");