Propeller Manual

Table Of Contents
3: Assembly Language Reference
ROR Rotate value right by specified number of bits; p 345.
SHL Shift value left by specified number of bits; p 347.
SHR Shift value right by specified number of bits; p 348.
SAR Shift value arithmetically right by specified number of bits; p 346.
CMP Compare two unsigned values; p 272.
CMPS Compare two signed values; p 274.
CMPX Compare two unsigned values plus C; p 280.
CMPSX Compare two signed values plus C; p 277.
CMPSUB Compare unsigned values, subtract second if lesser or equal; p 276.
TEST Bitwise AND two values to affect flags only; p 362.
TESTN Bitwise AND a value with NOT of another to affect flags only; p 363.
MOV Set a register to a value; p 311.
MOVS Set a register’s source field to a value; p 313.
MOVD Set a register’s destination field to a value; p 312.
MOVI Set a register’s instruction field to a value; p 312.
MUXC Set discrete bits of a value to the state of C; p 315.
MUXNC Set discrete bits of a value to the state of !C; p 316.
MUXZ Set discrete bits of a value to the state of Z; p 318.
MUXNZ Set discrete bits of a value to the state of !Z; p 317.
HUBOP Perform a hub operation; p 294.
NOP No operation, just elapse four cycles; p 324.
Constants
NOTE: Refer to Constants (pre-defined) in Chapter 2: Spin Language Reference.
TRUE
s
Logical true: -1 ($FFFFFFFF); p 93.
FALSE
s
Logical false: 0 ($00000000); p 93.
POSX
s
Maximum positive integer: 2,147,483,647 ($7FFFFFFF); p 94.
NEGX
s
Maximum negative integer: -2,147,483,648 ($80000000); p 94.
PI
s
Floating-point value for PI: ~3.141593 ($40490FDB); p 94.
Propeller Manual v1.1 · Page 247