Specifications

A-7Calculating Page Lenght Using Printer Colon File Escape Sequence
5. %& – Pops the top two values (two 1 s) 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, because 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 because the O flag was not used on the command
line.
12.%t – Pops the 0 off the stack and, because 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, because 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.
19.%{1} – Pushes a 1 onto the stack.
20.%= – Pops the two 1 s off the stack, compares them for equality, and pushes the
resultant 1 onto the stack.
21.%t – Pops the 1 off the stack and, because it is a TRUE (non–zero) values, calls for the
evaluation of %Gs1.
22.%Gs1 – Pushes a 1 onto the stack.
23.%d – Pops the 1 off the stack and returns it, in ASCII format, to the in–progress
calculation of wJ.
24.%Pq – Pops the 1 off the stack and stores it in the internal variable q.
25.%GWu – This value is already known, so a 1 is again pushed onto the stack.
26.%{3} – Pushes a 3 onto the stack.
27.%< – Pops the 3 and the 1 off the stack and, because 1 is less than 3, pushes a 1 onto
the stack.
28.%t – Pops the 1 off the stack and, because it is a TRUE (non–zero) values, calls for the
evaluation of %gq.
29.%gq – Pushes the value of the internal variable q, a 1, onto the stack.
30.%{1} – Pushes a 1 onto the stack.
31.%= – Pops the two 1 s off the stack, compares them for equality, and pushes the
resultant 1 onto the stack.
32.%t – Pops the 1 off the stack and, because it is a TRUE (non–zero) values, calls for the
evaluation of %{2400}.
33.%{2400} – Pushes a 2400 onto the stack.