Propeller Spin Manual Home
This chapter describes all elements of the Propeller chip's Spin language and is best used as a reference for individual elements of the Spin language. For a tutorial on the use of the language refer to the Spin Language Tutorial in the Propeller Tool's on-line help, then return here for more details.
Keywords
Operators
Arithmetic Operators
- Constant Assignment '='
- Variable Assignment ':='
- Add '+', '+='
- Positive (unary form of Add) '+'
- Subtract '-', '-='
- Negate (unary form of Subtract) '-'
- Increment, pre- or post- '++'
- Decrement, pre- or post- '--'
- Multiply, Return Low '*', '*='
- Multiply, Return High '**', '**='
- Divide '/', '/='
- Modulus '//', '//='
- Limit Minimum '#>', '#>='
- Limit Maximum '<#', '<#='
- Square Root '^^'
- Absolute Value '| |'
Bitwise Operators
- Sign-Extend 7 or Post-Clear '~'
- Sign-Extend 15 or Post-Set '~~'
- Bitwise Shift Arithmetic Right '~>', '~>='
- Random '?'
- Bitwise Decode '|<'
- Bitwise Encode '>|'
- Bitwise Shift Left '<<', '<<='
- Bitwise Shift Right '>>', '>>='
- Bitwise Rotate Left '<-', '<-='
- Bitwise Rotate Right '->', '->='
- Bitwise Reverse '><', '><='
- Bitwise AND '&', '&='
- Bitwise OR '|', '|='
- Bitwise XOR '^', '^='
- Bitwise NOT '!'