Category:FOCAL: Difference between revisions

Content added Content deleted
(add commands)
Line 35: Line 35:
| SET || S || Set a variable, e.g. "SET A=1"
| SET || S || Set a variable, e.g. "SET A=1"
|-
|-
| TYPE || T || Print a variable/expression/string. A "!" character prints a line feed and a "%" sets the number output format.
| TYPE || T || Print a variable/expression/string. A "!" character prints a line feed and a "%" sets the number output format. "T $" prints a list of all variables and their values.
|-
|-
| WRITE || W || List the whole or parts of a program. The whole program listing always starts with the (commented out) FOCAL version number, e.g. "FOCAL,1969".
| WRITE || W || List the whole or parts of a program. The whole program listing always starts with the (commented out) FOCAL version number, e.g. "FOCAL,1969".
|-
|-
|}
|}

==Running FOCAL in a PDP emulator==
==Running FOCAL in a PDP emulator==