Propeller Manual

Table Of Contents
2: Spin Language Reference – Symbols
Symbols
The symbols in Table 2-16 below serve one or more special purposes in Spin code. For
Propeller Assembly symbols, see Symbols, page 360. Each symbol’s purpose is described
briefly with references to other sections that describe it directly or use it in examples.
Table 2-16: Symbols
Symbol Purpose(s)
%
Binary indicator: used to indicate that a value is being expressed in binary (base-2). See
Value Representations on page 45.
%%
Quaternary indicator: used to indicate a value is being expressed in quaternary (base-4).
See Value Representations on page 45.
$
Hexadecimal indicator: used to indicate a value is being expressed in hexadecimal
(base-16). See Value Representations on page 45.
"
String designator: used to begin and end a string of text characters. Usually used in Object
blocks (page 141), Data blocks (page 99), or in Public/Private blocks with the STRING
directive (page 205).
@
Symbol Address Indicator: used immediately before a symbol to indicate the address of that
symbol is to be used, rather than the value at that symbol’s location. See Symbol Address
‘@’ on page 173.
@@
Object Address Plus Symbol Indicator: used immediately before a symbol to indicate the
value of that symbol should be added to the object’s base address. See Object Address
Plus Symbol ‘@@’ on page 173.
_
1) Delimiter: used as a group delimiter in constant values (where a comma ‘,’ or period ‘.’
may normally be used as a number group delimiter). See Value Representations on
page 45.
2) Underscore: used as part of a symbol. See Symbol Rules on page 45.
#
1) Object-Constant reference: used to reference a sub-object’s constants. See the CON
section’s Scope of Constants, page 89, and OBJ, page 141.
2) Enumeration Set: used in a CON block to set the start of an enumerated set of
symbols. See the CON section’s Enumerations (Syntax 2 and 3) on page 87.
.
1) Object-Method reference: used to reference a sub-object’s methods. See OBJ, page
141.
2) Decimal point: used in floating-point constant expressions. See
CON, page 84.
..
Range indicator: indicates a range from one expression to another for CASE
statements or an I/O register index. See OUTA, OUTB on page 175, INA, INB on page
118, and DIRA, DIRB on page 104.
(Table continues on next page.)
Propeller Manual v1.1 · Page 207