BSD 4 release
[unix-history] / usr / src / cmd / px / opoff.c
CommitLineData
31cef89c
BJ
1/* Copyright (c) 1979 Regents of the University of California */
2
3static char sccsid[] = "@(#)opoff.c 4.1 10/10/80";
4
5#include "OPnames.h"
6
7main() {
8 register int i;
9
10 for (i = 0; i < 256; i++)
11 if (otext[i] && *otext[i] != '*')
12 printf("\t.word\t_%s-optab\n", otext[i]+1);
13 else
14 printf("\t.word\tbadop-optab\n");
15 printf("badop:\n");
16 printf("\tincl\tr10\n");
17 printf("\tmovw\t$EBADOP,_perrno\n");
18 printf("\tjbr\terror\n");
19 exit(0);
20}