4 Operators and Symbols

! A unary and binary operator giving 32 bit indirection.
? A unary and binary operator giving 8 bit indirection.
" A delimiting character in strings.
Strings always have an even number of double quotes in them.
Double-quotes may be introduced into a string by the escape convention
"".
# A character indicating an immediate operand in assembler.
It also precedes reference to a file channel number (and is not optional).
$ A character indicating that the object has something to do with a string.
The syntax
$<expression> may be used to position a string anywhere in memory,
overriding the interpreter's space allocation.
As a suffix on a variable name it indicates a string variable.
% A suffix on a variable name indicating an integer variable.
& A prefix to hexadecimal constants e.g. &EF.
A character which causes newlines in PRINT or INPUT.
() Objects in parentheses have highest priority.
= A character signifying 'becomes' in assignment, LET and FOR statements,
'result is' for
FN, and relation of 'equal to' on integers, reals and strings.
- Unary negation and binary subtraction on integers and reals.
* Binary multiplication on integers and reals;
statement indicating operating system command.
: Multi-statement line statement delimiter.
; A character which suppresses forthcoming action in PRINT or INPUT.
+ Unary plus and binary addition on integers and reals; concatenation between strings.
, Delimiter in lists.
. Decimal point in real constants; abbreviation symbol on keyword entry;
introduces label in assembler.
< Relation of 'less than' on integers, reals and strings.
> Relation of 'greater than' on integers, reals and strings.
/ Binary division on integers and reals.
<= Relation of 'less than or equal' on integers, reals and strings.
>= Relation of 'greater than or equal' on integers, reals and strings.
<> Relation of 'not equal' on integers, reals and strings.
[] Delimiters for assembler statements. Statements between these delimiters will need to be assembled twice in order to resolve any forward references. The pseudo-operation OPT (initially 3) controls errors and listing.
Example:
10 OSWRCH=&FFF4
20 FORZ=lTO3STEP2: P%=TOP+l000
30 [ OPT Z : .START LDA # ASC"!"
40 LDX # 40
50 .LOOP JSR OSWRCH
60 DEX:BNE LOOP
70 RTS:] NEXT
80 CALL START
90 END
^ Binary operation of exponentiation between integers and reals.
~ A character in the start of a print field indicating that the item is to be printed in hexadecimal.

Next Chapter