Propeller Manual

Table Of Contents
Spin Language Reference
Page 36 · Propeller Manual v1.1
Structure of Propeller Objects/Spin
Each Propeller object is a Spin file that has an inherent structure consisting of up to six
different special-purpose blocks:
CON, VAR, OBJ, PUB, PRI, and DAT. These blocks are shown
below (in the order that they typically appear in objects) along with the set of elements usable
within each.
For detailed examples of the object (Spin) structure and usage, refer to the Propeller
Programming Tutorial in the Propeller Tool Help.
CON: Constant blocks define global constants (page 84).
_CLKFREQ p 65 NEGX p 93 PLL16X p 68 XINPUT p 68
_CLKMODE p 68
Operators* p 143
POSX p 93 XTAL1 p 68
_FREE p 110 PI p 93 RCFAST p 68 XTAL2 p 68
_STACK p 202 PLL1X p 68 RCSLOW p 68 XTAL3 p 68
_XINFREQ p 236 PLL2X p 68 ROUND p 198
FALSE p 93 PLL4X p 68 TRUE p 93
FLOAT p 108 PLL8X p 68 TRUNC p 209
*
Non-assignment operators only.
VAR: Variable blocks define global variables (page 210).
BYTE p 51 LONG p 128 ROUND p 198 TRUNC p 209
FLOAT p 108
Operators* p 143
WORD p 227
*
Non-assignment operators only.
OBJ: Object blocks define referenced objects (page 141).
FLOAT p 108
Operators* p 143
ROUND p 198 TRUNC p 209
*
Non-assignment operators only.