* Copyright (c) 1982 Regents of the University of California
static char sccsid
[] = "@(#)assizetab.c 4.4 %G%";
* Convert loader reference types (plus PCREL) to bytes and lg bytes
int reflen
[] = { /* {LEN*+PCREL} ==> number of bytes */
1, 1, /* LEN1, LEN1 + PCREL */
2, 2, /* LEN2, LEN2 + PCREL */
4, 4, /* LEN4, LEN2 + PCREL */
8, 8, /* LEN8, LEN2 + PCREL */
16, 16 /* LEN16, LEN16 + PCREL */
int lgreflen
[] = { /* {LEN*+PCREL} ==> number of bytes */
0, 0, /* LEN1, LEN1 + PCREL */
1, 1, /* LEN2, LEN2 + PCREL */
2, 2, /* LEN4, LEN2 + PCREL */
3, 3, /* LEN8, LEN2 + PCREL */
4, 4 /* LEN16, LEN16 + PCREL */
* Convert sizes to loader reference types and type flags
* Convert {1,2,4,8} into {LEN1, LEN2, LEN4, LEN8}
* Convert {1,2,4,8} into {bits to construct operands}
* {1,2,4,8} into {TYPB, TYPW, TYPL, TYPQ}
* Convert TYP[BWLQOFDGH] into {1 if relocation not OK}
* Convert TYP[BWLQOFDGH] into {1 if a floating point number}
* Convert TYP[BWLQOFDGH] into {LEN1 ... LEN16}
* Convert TYP[BWLQOFDGH] into {1 ... 16}
* Convert TYP[BWLQOFDGH] into lg{1 ... 16}
* Convert TYP[BWLQOFDGH] into strings
"unpackd", /* TYPUNPACKED */
"??snark??" /* TYPNONE */