1
2
3
4
5
6
7
8
9
10
11
12
13 putxt_: procedure( pc, word, relwrd ) ;
14
15
16
17
18
19
20 declare (pc, word, relwrd) fixed bin (26);
21 declare (lbits, rbits, itemp, nl, nr, i, ival ) fixed bin ( 17) aligned ;
22
23 % include objnfo ;
24
25
26 declare object_$object_ ext entry (fixed bin (26), fixed bin (26)),
27 object_$wrbtx ext entry (fixed bin (26), fixed bin (26)),
28 object_$getbtx ext entry ( fixed bin, fixed bin, fixed bin) ;
29
30 call object_$object_( pc, word ) ;
31
32 call object_$wrbtx( pc, relwrd ) ;
33
34 return ;
35
36
37
38
39 txtcnt: entry( ival ) ;
40
41 ival = 0 ;
42
43 itemp = itxpc - 1 ;
44
45 label_1000:
46 do i = 0 to itemp ;
47
48 call object_$getbtx( i, lbits, rbits ) ;
49
50 nl = 1 ;
51
52 nr = 1 ;
53
54 if lbits ^= 0 then nl = 5 ;
55
56 if rbits ^= 0 then nr = 5 ;
57
58 ival = nl + nr + ival ;
59
60 end label_1000 ;
61
62 itxcnt = ival ;
63
64 end putxt_ ;