xref: /csrg-svn/old/adb/adb.vax/optab.c (revision 8914)
1*8914Srrh #ifndef lint
2*8914Srrh static	char optab_sccsid[] = "@(#)optab.c 4.3 10/27/82";
3*8914Srrh #endif not lint
4*8914Srrh #ifdef ADB
53761Sroot #include "defs.h"
6*8914Srrh #endif ADB
7*8914Srrh #ifdef SDB
8*8914Srrh #include "defs.h"
9*8914Srrh #endif SDB
103761Sroot 
11*8914Srrh #undef INSTTAB
123761Sroot 
13*8914Srrh #include "instrs.h"
143761Sroot 
15*8914Srrh struct insttab insttab[] = {
16*8914Srrh #include "instrs.adb"
173761Sroot 0};
18*8914Srrh #include "assizetab.c"
19*8914Srrh #undef ADB
203761Sroot 
213761Sroot #define SYSTAB struct systab
223761Sroot SYSTAB {
233761Sroot 	int	argc;
243761Sroot 	char	*sname;
253761Sroot } systab[] = {
263761Sroot 	1, "indir",
273761Sroot 	0, "exit",
283761Sroot 	0, "fork",
293761Sroot 	2, "read",
303761Sroot 	2, "write",
313761Sroot 	2, "open",
323761Sroot 	0, "close",
333761Sroot 	0, "wait",
343761Sroot 	2, "creat",
353761Sroot 	2, "link",
363761Sroot 	1, "unlink",
373761Sroot 	2, "exec",
383761Sroot 	1, "chdir",
393761Sroot 	0, "time",
403761Sroot 	3, "mknod",
413761Sroot 	2, "chmod",
423761Sroot 	2, "chown",
433761Sroot 	1, "break",
443761Sroot 	2, "stat",
453761Sroot 	2, "seek",
463761Sroot 	0, "getpid",
473761Sroot 	3, "mount",
483761Sroot 	1, "umount",
493761Sroot 	0, "setuid",
503761Sroot 	0, "getuid",
513761Sroot 	0, "stime",
523761Sroot 	3, "ptrace",
533761Sroot 	0, "alarm",
543761Sroot 	1, "fstat",
553761Sroot 	0, "pause",
563761Sroot 	1, "30",
573761Sroot 	1, "stty",
583761Sroot 	1, "gtty",
593761Sroot 	0, "access",
603761Sroot 	0, "nice",
613761Sroot 	0, "sleep",
623761Sroot 	0, "sync",
633761Sroot 	1, "kill",
643761Sroot 	0, "csw",
653761Sroot 	0, "setpgrp",
663761Sroot 	0, "tell",
673761Sroot 	0, "dup",
683761Sroot 	0, "pipe",
693761Sroot 	1, "times",
703761Sroot 	4, "profil",
713761Sroot 	0, "tiu",
723761Sroot 	0, "setgid",
733761Sroot 	0, "getgid",
743761Sroot 	2, "signal",
753761Sroot 	0, "49",
763761Sroot 	0, "50",
773761Sroot 	0, "51",
783761Sroot 	0, "52",
793761Sroot 	0, "53",
803761Sroot 	0, "54",
813761Sroot 	0, "55",
823761Sroot 	0, "56",
833761Sroot 	0, "57",
843761Sroot 	0, "58",
853761Sroot 	0, "59",
863761Sroot 	0, "60",
873761Sroot 	0, "61",
883761Sroot 	0, "62",
893761Sroot 	0, "63",
903761Sroot };
913761Sroot 
923761Sroot STRING	regname[] = { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
933761Sroot 					"r8", "r9", "r10","r11","ap", "fp", "sp", "pc"};
943761Sroot STRING	fltimm[] = {
953761Sroot "0.5", "0.5625", "0.625", "0.6875", "0.75", "0.8125", "0.875", "0.9375",
963761Sroot "1.0", "1.125", "1.25", "1.375", "1.5", "1.625", "1.75", "1.875",
973761Sroot "2.0", "2.25", "2.5", "2.75", "3.0", "3.25", "3.5", "3.75",
983761Sroot "4.0", "4.5", "5.0", "5.5", "6.0", "6.5", "7.0", "7.5",
993761Sroot "8.0", "9.0", "10.0", "11.0", "12.0", "13.0", "14.0", "15.0",
1003761Sroot "16.0", "18.0", "20.0", "22.0", "24.0", "26.0", "28.0", "30.0",
1013761Sroot "32.0", "36.0", "40.0", "44.0", "48.0", "52.0", "56.0", "60.0",
1023761Sroot "64.0", "72.0", "80.0", "88.0", "96.0", "104.0", "112.0", "120.0"
1033761Sroot };
1043761Sroot 
105*8914Srrh #ifdef SDB
106*8914Srrh REGLIST reglist [] = {
107*8914Srrh 		"p1lr", P1LR,
108*8914Srrh 		"p1br",P1BR,
109*8914Srrh 		"p0lr", P0LR,
110*8914Srrh 		"p0br",P0BR,
111*8914Srrh 		"ksp",KSP,
112*8914Srrh 		"esp",ESP,
113*8914Srrh 		"ssp",SSP,
114*8914Srrh 		"psl", PSL,
115*8914Srrh 		"pc", PC,
116*8914Srrh 		"usp",USP,
117*8914Srrh 		"fp", FP,
118*8914Srrh 		"ap", AP,
119*8914Srrh 		"r11", R11,
120*8914Srrh 		"r10", R10,
121*8914Srrh 		"r9", R9,
122*8914Srrh 		"r8", R8,
123*8914Srrh 		"r7", R7,
124*8914Srrh 		"r6", R6,
125*8914Srrh 		"r5", R5,
126*8914Srrh 		"r4", R4,
127*8914Srrh 		"r3", R3,
128*8914Srrh 		"r2", R2,
129*8914Srrh 		"r1", R1,
130*8914Srrh 		"r0", R0,
131*8914Srrh };
132*8914Srrh #endif SDB
133