Propeller Manual

Table Of Contents
Spin Language Reference
Constants
TRUE
a
Logical true: -1 ($FFFFFFFF); p 93.
FALSE
a
Logical false: 0 ($00000000) ; p 93.
POSX
a
Maximum positive integer: 2,147,483,647 ($7FFFFFFF); p 93.
NEGX
a
Maximum negative integer: -2,147,483,648 ($80000000); p 93.
PI
a
Floating-point value for PI: ~3.141593 ($40490FDB); p 93.
Variable
RESULT Default result variable for PUB/PRI methods; p 194.
Unary Operators
+ Positive (+X); unary form of Add; p 150.
- Negate (-X); unary form of Subtract; p 150.
- - Pre-decrement (--X) or post-decrement (X--) and assign; p 151.
+ + Pre-increment (++X) or post-increment (X++) and assign; p 152.
^^ Square root; p 156.
|| Absolute Value; p 156.
~ Sign-extend from bit 7 (~X) or post-clear to 0 (X~); p 156.
~~ Sign-extend from bit 15 (~~X) or post-set to -1(X~~); p 157.
? Random number forward (?X) or reverse (X?); p 159.
|< Decode value (modulus of 32; 0-31) into single-high-bit long; p 160.
>| Encode long into magnitude (0 - 32) as high-bit priority; p 160.
! Bitwise: NOT; p 166.
NOT Boolean: NOT (promotes non-0 to -1); p 168.
@ Symbol address; p 173.
@@ Object address plus symbol value; p 173.
Page 42 · Propeller Manual v1.1