xref: /csrg-svn/old/adb/adb.tahoe/optab.h (revision 47819)
1*47819Sbostic /*-
2*47819Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47819Sbostic  * All rights reserved.
4*47819Sbostic  *
5*47819Sbostic  * %sccs.include.proprietary.c%
6*47819Sbostic  *
7*47819Sbostic  *	@(#)optab.h	5.1 (Berkeley) 04/04/91
8*47819Sbostic  */
926415Ssam 
1026415Ssam /*
1126415Ssam  * Argument access types
1226415Ssam  */
1336561Sbostic #define ACCA	(8<<3)		/* address only */
1436561Sbostic #define ACCR	(1<<3)		/* read */
1536561Sbostic #define ACCW	(2<<3)		/* write */
1636561Sbostic #define ACCM	(3<<3)		/* modify */
1736561Sbostic #define ACCB	(4<<3)		/* branch displacement */
1836561Sbostic #define ACCI	(5<<3)		/* XFC code */
1926415Ssam 
2026415Ssam /*
2126415Ssam  * Argument data types
2226415Ssam  */
2336561Sbostic #define TYPB	0		/* byte */
2436561Sbostic #define TYPW	1		/* word */
2536561Sbostic #define TYPL	2		/* long */
2636561Sbostic #define TYPQ	3		/* quad */
2736561Sbostic #define TYPF	4		/* float */
2836561Sbostic #define TYPD	5		/* double */
2926415Ssam 
3036561Sbostic /*
3136561Sbostic  * Special instructions
3236561Sbostic  */
3336561Sbostic #define	KCALL	0xcf
3436561Sbostic #define	CASEL	0xfc
3536561Sbostic 
3636561Sbostic extern struct optab {
3736561Sbostic 	char	*iname;
3836561Sbostic 	u_char	val;
3936561Sbostic 	u_char	nargs;
4036561Sbostic 	u_char	argtype[6];
4126415Ssam } optab[];
4236561Sbostic 
4336561Sbostic extern char *regname[];
44