Add .quad storage filler directive
[unix-history] / usr / src / old / as.vax / aspseudo.c
... / ...
CommitLineData
1/* Copyright (c) 1980 Regents of the University of California */
2static char sccsid[] = "@(#)aspseudo.c 4.3 %G%";
3#include <stdio.h>
4#include "as.h"
5
6#define OP(name, opcode, nargs, arg1, arg2, arg3, arg4, arg5, arg6) \
7 { \
8 name, opcode, nargs, arg1, arg2, arg3, arg4, arg5, arg6, \
9 (nargs == 0 ? INST0:INSTn) \
10 }
11#define PSEUDO(name, type, tag) \
12 { \
13 name, type, 0, 0, 0, 0, 0, 0, 0, \
14 tag \
15 }
16
17readonly struct Instab instab[] = {
18PSEUDO(".space", 0, ISPACE),
19PSEUDO(".fill", 0, IFILL),
20PSEUDO(".byte", 0, IBYTE),
21PSEUDO(".word", 0, IWORD),
22PSEUDO(".long", 0, ILONG),
23PSEUDO(".int", 0, IINT),
24PSEUDO(".quad", 0, IQUAD),
25PSEUDO(".data", 0, IDATA),
26PSEUDO(".globl", 0, IGLOBAL),
27PSEUDO(".set", 0, ISET),
28PSEUDO(".text", 0, ITEXT),
29PSEUDO(".comm", 0, ICOMM),
30PSEUDO(".lcomm", 0, ILCOMM),
31PSEUDO(".lsym", 0, ILSYM),
32PSEUDO(".align", 0, IALIGN),
33PSEUDO(".float", 0, IFLOAT),
34PSEUDO(".double", 0, IDOUBLE),
35PSEUDO(".org", 0, IORG),
36PSEUDO(".stab", 0, ISTAB),
37PSEUDO(".stabs", 0, ISTABSTR),
38PSEUDO(".stabn", 0, ISTABNONE),
39PSEUDO(".stabd", 0, ISTABDOT),
40PSEUDO(".ascii", 0, IASCII),
41PSEUDO(".asciz", 0, IASCIZ),
42PSEUDO(".file", 0, IFILE),
43PSEUDO(".line", 0, ILINENO),
44PSEUDO(".ABORT", 0, IABORT),
45
46PSEUDO("r0", 0, REG),
47PSEUDO("r1", 1, REG),
48PSEUDO("r2", 2, REG),
49PSEUDO("r3", 3, REG),
50PSEUDO("r4", 4, REG),
51PSEUDO("r5", 5, REG),
52PSEUDO("r6", 6, REG),
53PSEUDO("r7", 7, REG),
54PSEUDO("r8", 8, REG),
55PSEUDO("r9", 9, REG),
56PSEUDO("r10", 10, REG),
57PSEUDO("r11", 11, REG),
58PSEUDO("r12", 12, REG),
59PSEUDO("r13", 13, REG),
60PSEUDO("r14", 14, REG),
61PSEUDO("r15", 15, REG),
62PSEUDO("ap", 12, REG),
63PSEUDO("fp", 13, REG),
64PSEUDO("sp", 14, REG),
65PSEUDO("pc", 15, REG),
66
67PSEUDO("jcc", 0x1e, IJXXX),
68PSEUDO("jcs", 0x1f, IJXXX),
69PSEUDO("jeql", 0x13, IJXXX),
70PSEUDO("jeqlu", 0x13, IJXXX),
71PSEUDO("jgeq", 0x18, IJXXX),
72PSEUDO("jgequ", 0x1e, IJXXX),
73PSEUDO("jgtr", 0x14, IJXXX),
74PSEUDO("jgtru", 0x1a, IJXXX),
75PSEUDO("jleq", 0x15, IJXXX),
76PSEUDO("jlequ", 0x1b, IJXXX),
77PSEUDO("jlss", 0x19, IJXXX),
78PSEUDO("jlssu", 0x1f, IJXXX),
79PSEUDO("jneq", 0x12, IJXXX),
80PSEUDO("jnequ", 0x12, IJXXX),
81PSEUDO("jvc", 0x1c, IJXXX),
82PSEUDO("jvs", 0x1d, IJXXX),
83PSEUDO("jbr", 0x11, IJXXX),
84PSEUDO("jbc", 0xe1, IJXXX),
85PSEUDO("jbs", 0xe0, IJXXX),
86PSEUDO("jbcc", 0xe5, IJXXX),
87PSEUDO("jbsc", 0xe4, IJXXX),
88PSEUDO("jbcs", 0xe3, IJXXX),
89PSEUDO("jbss", 0xe2, IJXXX),
90PSEUDO("jlbc", 0xe9, IJXXX),
91PSEUDO("jlbs", 0xe8, IJXXX),
92
93#include "instrs"
94
950
96};