Propeller Manual
Table Of Contents
- Preface
- Chapter 1 : Introducing the Propeller Chip
- Concept
- Package Types
- Pin Descriptions
- Specifications
- Hardware Connections
- Boot Up Procedure
- Run-Time Procedure
- Shutdown Procedure
- Block Diagram
- Shared Resources
- System Clock
- Cogs (processors)
- Hub
- I/O Pins
- System Counter
- CLK Register
- Locks
- Main Memory
- Main RAM
- Main ROM
- Character Definitions
- Log and Anti-Log Tables
- Sine Table
- Boot Loader and Spin Interpreter
- Chapter 2 : Spin Language Reference
- Structure of Propeller Objects/Spin
- Categorical Listing of Propeller Spin Language
- Spin Language Elements
- ABORT
- BYTE
- BYTEFILL
- BYTEMOVE
- CASE
- CHIPVER
- CLKFREQ
- _CLKFREQ
- CLKMODE
- _CLKMODE
- CLKSET
- CNT
- COGID
- COGINIT
- COGNEW
- COGSTOP
- CON
- CONSTANT
- Constants (pre-defined)
- CTRA, CTRB
- DAT
- DIRA, DIRB
- FILE
- FLOAT
- _FREE
- FRQA, FRQB
- IF
- IFNOT
- INA, INB
- LOCKCLR
- LOCKNEW
- LOCKRET
- LOCKSET
- LONG
- LONGFILL
- LONGMOVE
- LOOKDOWN, LOOKDOWNZ
- LOOKUP, LOOKUPZ
- NEXT
- OBJ
- Operators
- Expression Workspace
- Operator Attributes
- Unary / Binary
- Normal / Assignment
- Constant and/or Variable Expression
- Level of Precedence
- Intermediate Assignments
- Constant Assignment ‘=’
- Variable Assignment ‘:=’
- Add ‘+’, ‘+=’
- Positive ‘+’ (unary form of Add)
- Subtract ‘-’, ‘-=’
- Negate ‘-’ (unary form of Subtract)
- Decrement, pre- or post- ‘- -’
- Increment, pre- or post- ‘+ +’
- Multiply, Return Low ‘*’, ‘*=’
- Multiply, Return High ‘**’, ‘**=’
- Divide ‘/’, ‘/=’
- Modulus ‘//’, ‘//=’
- Limit Minimum ‘#>’, ‘#>=’
- Limit Maximum ‘<#’, ‘<#=’
- Square Root ‘^^’
- Absolute Value ‘||’
- Sign-Extend 7 or Post-Clear ‘~’
- Sign-Extend 15 or Post-Set ‘~~’
- 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 ‘!’
- Boolean AND ‘AND’, ‘AND=’
- Boolean OR ‘OR’, ‘OR=’
- Boolean NOT ‘NOT’
- Boolean Is Equal ‘==’, ‘===’
- Boolean Is Not Equal ‘<>’, ‘<>=’
- Boolean Is Less Than ‘<’, ‘<=’
- Boolean Is Greater Than ‘>’, ‘>=’
- Boolean Is Equal or Less ‘=<’, ‘=<=’
- Boolean Is Equal or Greater ‘=>’, ‘=>=’
- Symbol Address ‘@’
- Object Address Plus Symbol ‘@@’
- OUTA, OUTB
- PAR
- PHSA, PHSB
- PRI
- PUB
- QUIT
- REBOOT
- REPEAT
- RESULT
- RETURN
- ROUND
- SPR
- _STACK
- STRCOMP
- STRING
- STRSIZE
- Symbols
- TRUNC
- VAR
- VCFG
- VSCL
- WAITCNT
- WAITPEQ
- WAITPNE
- WAITVID
- WORD
- WORDFILL
- WORDMOVE
- _XINFREQ
- Chapter 3 : Assembly Language Reference
- The Structure of Propeller Assembly
- Categorical Listing of Propeller Assembly Language
- Assembly Language Elements
- ABS
- ABSNEG
- ADD
- ADDABS
- ADDS
- ADDSX
- ADDX
- AND
- ANDN
- CALL
- CLKSET
- CMP
- CMPS
- CMPSUB
- CMPSX
- CMPX
- CNT
- COGID
- COGINIT
- COGSTOP
- Conditions ( IF_x )
- CTRA, CTRB
- DIRA, DIRB
- DJNZ
- Effects ( WC, WZ, WR, NR )
- FIT
- FRQA, FRQB
- HUBOP
- IF_x (Conditions)
- INA, INB
- JMP
- JMPRET
- LOCKCLR
- LOCKNEW
- LOCKRET
- LOCKSET
- MAX
- MAXS
- MIN
- MINS
- MOV
- MOVD
- MOVI
- MOVS
- MUXC
- MUXNC
- MUXNZ
- MUXZ
- NEG
- NEGC
- NEGNC
- NEGNZ
- NEGZ
- NOP
- NR
- Operators
- OR
- ORG
- OUTA, OUTB
- PAR
- PHSA, PHSB
- RCL
- RCR
- RDBYTE
- RDLONG
- RDWORD
- Registers
- RES
- RET
- REV
- ROL
- ROR
- SAR
- SHL
- SHR
- SUB
- SUBABS
- SUBS
- SUBSX
- SUBX
- SUMC
- SUMNC
- SUMZ
- Symbols
- TEST
- TESTN
- TJNZ
- TJZ
- VCFG
- VSCL
- WAITCNT
- WAITPEQ
- WAITPNE
- WAITVID
- WC
- WR
- WRBYTE
- WRLONG
- WRWORD
- WZ
- XOR
- Appendix A: Reserved Word List
- Appendix B: Math Samples and Function Tables
- Index
IF_x (Conditions) – Assembly Language Reference
Page 296 · Propeller Manual v1.1
Table 3-3: Conditions
Condition Instruction Executes Value Synonyms
IF_ALWAYS
always
1111
IF_NEVER
never
0000
IF_E
if equal (Z = 1)
1010
IF_Z
IF_NE
if not equal (Z = 0)
0101
IF_NZ
IF_A
if above (!C & !Z = 1)
0001
IF_NC_AND_NZ –and– IF_NZ_AND_NC
IF_B
if below (C = 1)
1100
IF_C
IF_AE
if above or equal (C = 0)
0011
IF_NC
IF_BE
if below or equal (C | Z = 1)
1110
IF_C_OR_Z –and– IF_Z_OR_C
IF_C
if C set
1100
IF_B
IF_NC
if C clear
0011
IF_AE
IF_Z
if Z set
1010
IF_E
IF_NZ
if Z clear
0101
IF_NE
IF_C_EQ_Z
if C equal to Z
1001
IF_Z_EQ_C
IF_C_NE_Z
if C not equal to Z
0110
IF_Z_NE_C
IF_C_AND_Z
if C set and Z set
1000
IF_Z_AND_C
IF_C_AND_NZ
if C set and Z clear
0100
IF_NZ_AND_C
IF_NC_AND_Z
if C clear and Z set
0010
IF_Z_AND_NC
IF_NC_AND_NZ
if C clear and Z clear
0001
IF_A –and– IF_NZ_AND_NC
IF_C_OR_Z
if C set or Z set
1110
IF_BE –and– IF_Z_OR_C
IF_C_OR_NZ
if C set or Z clear
1101
IF_NZ_OR_C
IF_NC_OR_Z
if C clear or Z set
1011
IF_Z_OR_NC
IF_NC_OR_NZ
if C clear or Z clear
0111
IF_NZ_OR_NC
IF_Z_EQ_C
if Z equal to C
1001
IF_C_EQ_Z
IF_Z_NE_C
if Z not equal to C
0110
IF_C_NE_Z
IF_Z_AND_C
if Z set and C set
1000
IF_C_AND_Z
IF_Z_AND_NC
if Z set and C clear
0010
IF_NC_AND_Z
IF_NZ_AND_C
if Z clear and C set
0100
IF_C_AND_NZ
IF_NZ_AND_NC
if Z clear and C clear
0001
IF_A –and– IF_NC_AND_NZ
IF_Z_OR_C
if Z set or C set
1110
IF_BE –and– IF_C_OR_Z
IF_Z_OR_NC
if Z set or C clear
1011
IF_NC_OR_Z
IF_NZ_OR_C
if Z clear or C set
1101
IF_C_OR_NZ
IF_NZ_OR_NC
if Z clear or C clear
0111
IF_NC_OR_NZ