1
2
3
4 declare 1 oprnd_z aligned static,
5 2 type fixed bin aligned init(1),
6 2 operand_no fixed bin aligned init(0),
7 2 lock fixed bin aligned init(0),
8 2 segno fixed bin aligned,
9 2 char_offset fixed bin(24) aligned,
10 2 send_receive fixed bin aligned init(0);
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 declare 1 input_struc aligned static,
37 2 type fixed bin aligned init(4),
38 2 operand_no fixed bin aligned init(1),
39 2 lock fixed bin aligned init(0),
40 2 operand,
41 3 token_ptr ptr aligned init(null),
42 3 send_receive fixed bin aligned init(0),
43 3 ic_mod fixed bin aligned,
44 3 size_sw fixed bin aligned init(0);
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 declare 1 oprnd_ovfl static aligned,
85 2 gen_name char(32) init("cobol_call_gen"),
86 2 message_len fixed bin aligned init(26),
87 2 message char(26) aligned init
88 ("USING operands exceed 127!");
89
90
91
92 dcl inst_seq_1a(4) bit(18) unaligned static init
93 ("000000000000000000"b, "011101010001000000"b,
94 "110000000000000000"b, "010101010001000000"b);
95
96 dcl inst_seq_1b(6) bit(18) unaligned static init
97 ("110000000000011010"b, "011101001101010000"b,
98 "001000000000000000"b, "011101010001010000"b,
99 "110000000000000000"b, "010101010001000000"b);
100
101 dcl inst_seq_2(2) bit(36) aligned static init
102 ("000000000000000000011101010000000100"b,
103 "110000000000000000010101010001000000"b);
104
105 dcl ch_desc bit(36) ;
106
107 dcl inst_seq_3a(8) bit(18) unaligned static init
108 ("110000000000000000"b, "110010001001000000"b,
109 "000000000000000000"b, "100011001000000111"b,
110 "100000000000000000"b, "011101010001010000"b,
111 "000000000000000101"b, "111000000001000000"b);
112
113 dcl inst_seq_3b(8) bit(18) unaligned static init
114 ("110000000000101110"b, "110010001001000000"b,
115 "000000000000000000"b, "100011001000000111"b,
116 "100000000000000000"b, "011101010001010000"b,
117 "000000000000000110"b, "111000000001000000"b);
118
119 dcl inst_seq_3rel(8) bit(5) aligned static init
120 ("00000"b, "00000"b,
121 "00000"b, "00000"b,
122 "10100"b, "00000"b,
123 "00000"b, "00000"b);
124
125 dcl inst_seq_1_1(26) bit(18) unaligned static init
126 ("000000000000000000"b, "011101010000010100"b,
127 "110000000001000110"b, "010101010001000000"b,
128 "110000000001000110"b, "011101010001000000"b,
129 "110000000001001110"b, "010101010001000000"b,
130 "110000000001000100"b, "011101010001000000"b,
131 "110000000001010100"b, "010101010001000000"b,
132 "110000000000101000"b, "011101010001000000"b,
133 "110000000001010110"b, "010101010001000000"b,
134 "000000000000000000"b, "011101010000000100"b,
135 "110000000001001010"b, "010101010001000000"b,
136 "110000000001010000"b, "010101010001000000"b,
137 "000000000000000000"b, "011101010000000100"b,
138 "110000000001010010"b, "010101010001000000"b);
139
140 dcl inst_seq_1_3(60) bit(18) unaligned static init
141 ("000000000000000011"b, "001010100101000000"b,
142 "010000000000000000"b, "000000000000000000"b,
143 "000100100000000000"b, "000000000000000000"b,
144 "110000000001001001"b, "000000000001000000"b,
145 "000000000000010000"b, "110000110100000100"b,
146 "110000000001001001"b, "010011101001000000"b,
147 "101010110000000000"b, "010111101000000011"b,
148 "110000000001001010"b, "111101101001000000"b,
149 "110000000001001001"b, "010011101001000000"b,
150 "000000000000000001"b, "000111101000000111"b,
151 "010000000000000000"b, "101000000101000101"b,
152 "110000000001010010"b, "010101010001000000"b,
153 "000000000000000000"b, "101011001000000000"b,
154 "000000000000000000"b, "000111101000000000"b,
155 "101010110000000000"b, "010111101000000011"b,
156 "110000000001001011"b, "111101101001000000"b,
157 "110000000001001010"b, "011101010001000000"b,
158 "110000000001011010"b, "010101010001000000"b,
159 "110000000001001011"b, "011101010001000000"b,
160 "000000000000000111"b, "111001000000000100"b,
161 "110000000001010010"b, "010101010001000000"b,
162 "000000000000000000"b, "010011101000000000"b,
163 "101010110000000000"b, "010111101000000011"b,
164 "110000000001001010"b, "111101101001000000"b,
165 "110000000001001010"b, "011101010001000000"b,
166 "110000000001011010"b, "010101010001000000"b,
167 "110000000001011100"b, "010101010001000000"b,
168 "110000000001001100"b, "110010001001000000"b,
169 "000010100000000000"b, "100011001000000111"b,
170 "100000000000000000"b, "011101010001010000"b);
171
172 dcl rel_seq_1_3(62) bit(5) aligned static init
173 ("00000"b, "00000"b,
174 "00000"b, "00000"b,
175 "00000"b, "00000"b,
176 "00000"b, "00000"b,
177 "00000"b, "00000"b,
178 "00000"b, "00000"b,
179 "00000"b, "00000"b,
180 "00000"b, "00000"b,
181 "00000"b, "00000"b,
182 "00000"b, "00000"b,
183 "00000"b, "00000"b,
184 "00000"b, "00000"b,
185 "00000"b, "00000"b,
186 "00000"b, "00000"b,
187 "00000"b, "00000"b,
188 "00000"b, "00000"b,
189 "00000"b, "00000"b,
190 "00000"b, "00000"b,
191 "00000"b, "00000"b,
192 "00000"b, "00000"b,
193 "00000"b, "00000"b,
194 "00000"b, "00000"b,
195 "00000"b, "00000"b,
196 "00000"b, "00000"b,
197 "00000"b, "00000"b,
198 "00000"b, "00000"b,
199 "00000"b, "00000"b,
200 "00000"b, "00000"b,
201 "00000"b, "00000"b,
202 "10100"b, "00000"b,
203 "00000"b, "00000"b);
204
205 dcl inst_seq_2_0(6) bit(18) unaligned static init
206 ("110000000000101000"b, "010011101001000000"b,
207 "000000000000000000"b, "110000000000000100"b,
208 "000000000000000000"b, "111001000000000100"b);
209
210 dcl var_inst (4) bit(18) unaligned static init(
211 "101010110000000000"b, "010111101000000011"b,
212 "110000000000000000"b, "111101101001000000"b);
213
214 dcl 1 fixup_directive aligned static,
215 2 operation bit(1) unal init("0"b),
216 2 type bit(4) unal init("1111"b),
217 2 reserved bit(9) unal init("000000000"b),
218 2 location unal,
219 3 half bit(1) unal init("0"b),
220 3 base bit(3) unal init("001"b),
221 3 offset fixed bin unal,
222 2 tag_number fixed bin aligned;
223
224
225
226
227
228 dcl cobol_addr entry (ptr, ptr, ptr),
229 cobol_make_fixup entry(ptr),
230 cobol_make_type9$type2_3 entry(ptr,ptr),
231 cobol_alloc$stack entry (fixed bin, fixed bin, fixed bin),
232 cobol_arg_descriptor entry (bit(36), bit(36), fixed bin),
233 cobol_arg_descriptor$type9 entry (ptr, bit(36), fixed bin),
234 cobol_get_size entry (ptr,fixed bin,fixed bin),
235 cobol_define_tag_nc entry (fixed bin, fixed bin),
236 cobol_define_tag entry(fixed bin),
237 cobol_emit entry (ptr, ptr, fixed bin),
238 cobol_make_link$type_4 entry (fixed bin, char(*)),
239 cobol_make_tagref entry (fixed bin, fixed bin, ptr),
240 cobol_pointer_register$call entry,
241 cobol_pointer_register$get entry (ptr),
242 cobol_pool entry (char(*), fixed bin, fixed bin),
243 cobol_gen_error entry (fixed bin, fixed bin),
244 cobol_call_op entry(fixed bin,fixed bin),
245 cobol_reg_manager$after_op entry(fixed bin),
246 signal_ entry (char(*), ptr, ptr);
247
248
249
250
251
252 dcl addr builtin,
253 binary builtin,
254 null builtin,
255 substr builtin,
256 unspec builtin;
257
258
259 %include cobol_;
260 %include cobol_type3;
261 %include cobol_type9;
262 %include cobol_type19;
263 %include cobol_in_token;
264 %include cobol_fixed_common;
265 %include cobol_ext_;