1*48101Sbostic /*-
2*48101Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48101Sbostic  * All rights reserved.
422647Sdist  *
5*48101Sbostic  * %sccs.include.redist.c%
6*48101Sbostic  *
7*48101Sbostic  *	@(#)optab.h	5.2 (Berkeley) 04/16/91
822647Sdist  */
95484Slinton 
105484Slinton /*
115484Slinton  * px opcode information structure
125484Slinton  */
135484Slinton 
145484Slinton #define MAXNARGS 10
155484Slinton 
165484Slinton /*
175484Slinton  * argument types
185484Slinton  */
195484Slinton 
205484Slinton typedef int ARGTYPE;
215484Slinton 
225484Slinton #define ADDR2	 1
235484Slinton #define ADDR4	 2
245484Slinton #define DISP	 3
255484Slinton #define PSUBOP	 5
265484Slinton #define SUBOP	 6
275484Slinton #define VLEN	 7
285484Slinton #define HWORD	 8
295484Slinton #define LWORD	 9
305484Slinton #define STRING	10
315484Slinton 
325484Slinton typedef struct {
335484Slinton 	char *opname;
345484Slinton 	ARGTYPE argtype[MAXNARGS];
355484Slinton } OPTAB;
365484Slinton 
375484Slinton OPTAB optab[];
38