Symbols
The symbols below serve one or more special purposes in Spin code. For Propeller Assembly symbols, see Symbols, page . Each symbol's purpose is described briefly with references to other sections that describe it directly or use it in examples.
Symbol | Purpose(s) |
% | Binary indicator: used to indicate that a value is being expressed in binary (base 2). See Value Representations. |
%% | Quaternary indicator: used to indicate a value is being expressed in quaternary (base 4). See Value Representations. |
$ | Hexadecimal indicator: used to indicate a value is being expressed in hexadecimal (base 16). See Value Representations. |
" | String designator: used to begin and end a string of text characters. Usually used in Object blocks, Data blocks, or in Public / Private blocks with the STRING directive. |
@ | 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 Address Symbol '@'. |
@@ | 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 '@@'. |
_ |
|
# |
|
. | |
.. | Range indicator: indicates a range from one expression to another for CASE statements or an I/O register index. See OUTA, OUTB, INA, INB, and DIRA, DIRB. |
: |
|
| |
|
** | Abort trap: appears immediately before a method call that could potentially abort. See ABORT. |
, | List delimiter: used to separate items in lists. See LOOKUP, LOOKUPZ, LOOKDOWN, LOOKDOWNZ, and Declaring Data (Syntax 1). |
( ) | Parameter list designators: used to surround method parameters. See PUB and PRI. |
[ ] | Array index designators: used to surround indexes on variable arrays or main memory references. See VAR, BYTE, WORD, and LONG. |
' | Code comment designator: used to enter single-line code comments (non-compiled text) for code viewing purposes. See "Using the Propeller Tool" in the software's Help file. |
'' | Document comment designator: used to enter single-line document comments (non-compiled text) for documentation viewing purposes. See "Using the Propeller Tool" in the software's Help file. |
{ } | In-line/multi-line code comment designators: used to enter multi-line code comments (non-compiled text) for code viewing purposes. |
{{ }} | In-line/multi-line document comment designators: used to enter multi-line document comments (non-compiled text) for documentation viewing purposes. See "Using the Propeller Tool" in the software's Help file. |
Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.