Field Service Manual
December 2003
Page 27 of 276
208 13 8 / ? / . <> ----> 1208
In addition to these arithmetic operators, the following logical operations are possible:
>, >=, < =, ==, < >. These words also pop two numbers from the stack and push a
zero if the logical operation gives a FALSE result, and push a one if the result is
TRUE.
Examples
3 4 == . ---> 0
3 4 > . ---> 0
3 4 <= . ---> 1
3 2 + 5 == . ---> 1
LTL also knows loop constructs:
number DO .... LOOP
DO ...... WHILE
DO ...... UNTIL
DO ...... TILKEY
The LOOP word decreases the number on TOS and goes on with the word after the
DO word if the TOS is not zero. If TOS is zero the words after LOOP are executed. It
is important that the words between DO and LOOP do not leave any supplementary
data on the stack because this disturbs the loop counter.
Examples
10 DO ? LOOP
This is a correct loop construct, it will print the numbers 10 up to 1 on the screen.
10 DO . LOOP
This is an error because the .-word will print the 10 but also removes the loop counter
from stack. The LOOP word will find nothing on the stack and this will result in a
stack empty error.
10 DO 1 ? LOOP
This is also incorrect, because the ?-word leaves the 1 on the stack, the LOOP word
will decrease this 1 and end the loop.
The WHILE word repeats the instructions between DO and WHILE if the number on
the stack does not equal zero. If the TOS-number is zero, the loop stops.
The UNTIL word repeats the loop until the number on the stack is not equal to zero.
Both WHILE and UNTIL words usually follow after a logical operation.
DO (commands) TILKEY allows repeated execution of commands put between the
words, until a key is pressed. This sets a "flag", which will cause the loop to be exited
after completion of the commands, so this may take some time!
Summary of Contents for SilverWriter 800
Page 6: ...Field Service Manual December 2003 Page 6 of 276 ...
Page 8: ...Field Service Manual December 2003 Page 8 of 276 ...
Page 18: ...Field Service Manual December 2003 Page 18 of 276 ...
Page 20: ...Field Service Manual December 2003 Page 20 of 276 ...
Page 24: ...Field Service Manual December 2003 Page 24 of 276 ...
Page 95: ...Field Service Manual December 2003 Page 95 of 276 Multi FilmFeeder solid state panel ...
Page 96: ...Field Service Manual December 2003 Page 96 of 276 ...
Page 122: ...Field Service Manual December 2003 Page 122 of 276 ...
Page 130: ...Field Service Manual December 2003 Page 130 of 276 ...
Page 134: ...Field Service Manual December 2003 Page 134 of 276 ...
Page 168: ......
Page 172: ...Field Service Manual December 2003 Page 172 of 276 ...
Page 174: ...Field Service Manual December 2003 Page 174 of 276 ...
Page 187: ...Field Service Manual December 2003 Page 187 of 276 ...
Page 216: ...Field Service Manual December 2003 Page 216 of 276 ...
Page 220: ...Field Service Manual December 2003 Page 220 of 276 Main directory structure ...
Page 225: ...Field Service Manual December 2003 Page 225 of 276 Adding a DPF file in the plotter queue ...
Page 227: ...Field Service Manual December 2003 Page 227 of 276 Stop logging ...
Page 234: ...Field Service Manual December 2003 Page 234 of 276 ...
Page 240: ...Field Service Manual December 2003 Page 240 of 276 ...
Page 242: ...Field Service Manual December 2003 Page 242 of 276 ...
Page 246: ...Field Service Manual December 2003 Page 246 of 276 ...
Page 248: ...Field Service Manual December 2003 Page 248 of 276 ...
Page 252: ...Field Service Manual December 2003 Page 252 of 276 ...
Page 268: ...Field Service Manual December 2003 Page 268 of 276 ...
Page 270: ...Field Service Manual December 2003 Page 270 of 276 ...
Page 274: ...Field Service Manual December 2003 Page 274 of 276 ...