xref: /csrg-svn/old/adb/adb.tahoe/optab.h (revision 36561)
1*36561Sbostic /*	@(#)optab.h	1.2 (Berkeley) 01/16/89	*/
226415Ssam 
326415Ssam /*
426415Ssam  * Argument access types
526415Ssam  */
6*36561Sbostic #define ACCA	(8<<3)		/* address only */
7*36561Sbostic #define ACCR	(1<<3)		/* read */
8*36561Sbostic #define ACCW	(2<<3)		/* write */
9*36561Sbostic #define ACCM	(3<<3)		/* modify */
10*36561Sbostic #define ACCB	(4<<3)		/* branch displacement */
11*36561Sbostic #define ACCI	(5<<3)		/* XFC code */
1226415Ssam 
1326415Ssam /*
1426415Ssam  * Argument data types
1526415Ssam  */
16*36561Sbostic #define TYPB	0		/* byte */
17*36561Sbostic #define TYPW	1		/* word */
18*36561Sbostic #define TYPL	2		/* long */
19*36561Sbostic #define TYPQ	3		/* quad */
20*36561Sbostic #define TYPF	4		/* float */
21*36561Sbostic #define TYPD	5		/* double */
2226415Ssam 
23*36561Sbostic /*
24*36561Sbostic  * Special instructions
25*36561Sbostic  */
26*36561Sbostic #define	KCALL	0xcf
27*36561Sbostic #define	CASEL	0xfc
28*36561Sbostic 
29*36561Sbostic extern struct optab {
30*36561Sbostic 	char	*iname;
31*36561Sbostic 	u_char	val;
32*36561Sbostic 	u_char	nargs;
33*36561Sbostic 	u_char	argtype[6];
3426415Ssam } optab[];
35*36561Sbostic 
36*36561Sbostic extern char *regname[];
37