1
2
3
4
5
6
7
8 dcl read_ctlp ptr;
9
10 dcl 1 read_ctl aligned based (read_ctlp),
11 2 version fixed bin,
12 2 areap ptr,
13 2 read_infop ptr,
14 2 max_len fixed bin,
15 2 max_fields fixed bin;
16
17
18
19
20 dcl 1 read_info aligned based (read_ctl.read_infop),
21 2 version fixed bin,
22 2 next_read_infop ptr,
23 2 controller fixed bin,
24 2 device fixed bin,
25 2 reason,
26 3 key fixed bin,
27 3 sub_key fixed bin,
28 3 code fixed bin (35),
29 2 status,
30 3 bits bit (12) unal,
31 3 fill bit (24) unal,
32 2 cursor_position fixed bin,
33 2 max_fields fixed bin,
34 2 max_len fixed bin,
35 2 mod_fields fixed bin,
36 2 data (read_ctl.max_fields refer (read_info.max_fields)),
37 3 field_position fixed bin,
38 3 contents char (read_ctl.max_len refer (read_info.max_len)) var;
39
40
41
42 dcl (ERROR init (1),
43 STATUS init (2),
44 ENTER init (3),
45 PF_KEY init (4),
46 PA_KEY init (5),
47 CLEAR init (6),
48 ID_READER init (7),
49 LIGHT_PEN init (8),
50 TEST_REQ init (9))
51 int static options (constant);
52
53 dcl write_infop ptr;
54 dcl max_write_fields fixed bin;
55 dcl max_write_len fixed bin;
56
57 dcl 1 write_info aligned based (write_infop),
58 2 version fixed bin,
59 2 controller fixed bin,
60 2 device fixed bin,
61 2 from_device fixed bin,
62 2 command fixed bin,
63 2 write_ctl_char,
64 3 bits unal,
65 4 print_format bit (2) unal,
66 4 start_printer bit (1) unal,
67 4 sound_alarm bit (1) unal,
68 4 keyboard_restore bit (1) unal,
69 4 reset_mdt bit (1) unal,
70 3 copy_bits bit (2) unal,
71 3 pad bit (28) unal,
72 2 max_fields fixed bin,
73 2 max_len fixed bin,
74 2 mod_fields fixed bin,
75 2 data (max_write_fields refer (write_info.max_fields)),
76 3 orders unal,
77 4 set_buffer_addr bit (1),
78 4 start_field bit (1),
79 4 insert_cursor bit (1),
80 4 program_tab bit (1),
81 4 repeat_to_addr bit (1),
82 4 erase_to_addr bit (1),
83 3 attributes unal,
84 4 protected bit (1),
85 4 numeric bit (1),
86 4 display_form bit (2),
87
88 4 reserved bit (1),
89 4 mdt bit (1),
90 3 pad1 bit (12) unal,
91 3 field_position fixed bin,
92 3 contents char (max_write_len refer (write_info.max_len)) varying;
93
94
95
96 dcl (WRITE init (1),
97 ERASE_WRITE init (2),
98 COPY init (3),
99 ERASE_UNPROTECTED init (4),
100 READ_MODIFIED init (5),
101 READ_BUFFER init (6))
102 fixed bin int static options (constant);
103
104