User`s guide
4-143
Printer, Plotter, and Spooler Subsystem Programming
1
2
3
4
5
6
7
8
9
10
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
37
36
38
wL _l wJ wQ Wu
%Cl0
%I_l
%G_z
1
%{1}
1
%t
%GwJ
%G_Q
%GWu
%GwQ
%CO
%t
0
%G_u
1
%d
1
%{0}
0
%=
0
%t
%GWu
1
%{1}
1
%=
1
%t
%Gs1
1
%d
1
%Pq
%GWu1
%{3}3
%<
1
%t
%gq
1
%{1}
1
%=1
%t
%{2400}
2400
%d
2400
%G_v
6
%*14400
%{300}300
%/
48
%d
48
Calculation of Page Length
%&
1
39
1. %Cl – Pushes a 0 onto the stack since the l flag was not used on the command line.
2. %I_l – Calls for the evaluation of _l.
3. %G_z – Pushes a 1 onto the stack.
4. %{1} – Pushes a 1 onto the stack.
5. %& – Pops the top two values (two 1s) off the stack, performs a bitwise AND on the two
values, and pushes the resultant 1 onto the stack.
6. %t – Pops the 1 off the stack and, since it is a TRUE (non–zero) value, calls for the
evaluation of %GwJ. The stack labeled _l is now empty.
7. %GwJ – Calls for the evaluation of wJ.
8. %G_Q – Calls for the evaluation of wQ.
9. %GwQ – Calls for the evaluation of %GWu.
10.%GWu – Calls for the evaluation of Wu.
11.%CO – Pushes a 0 onto the stack since the O flag was not used on the command line.
12.%t – Pops the 0 off the stack and, since it is a FALSE (zero) value, calls for the
evaluation of %G_u. The stack labeled Wu is now empty.
13.%G_u – Pushes a 1 onto the stack.
14.%d – Pops the 1 off the stack and returns it, in ASCII format, to the in–progress
calculation of wQ.
15.%{0} – Pushes a 0 onto the stack.
16.%= – Pops the 0 and 1 off the stack, compares them for equality, and pushes the
resultant 0 onto the stack.
17.%t – Pops the 0 off the stack and, since it is a FALSE (zero) value, calls for the
evaluation of %GwU.
18.%GWu – This value is already known, so a 1 is pushed onto the stack.