Propeller Manual

Table Of Contents
Assembly Language Reference
Page 250 · Propeller Manual v1.1
Assembly Language Elements
Syntax Definitions
In addition to detailed descriptions, the following pages contain syntax definitions for many
elements that describe, in short terms, all the options of that element. The syntax definitions
use special symbols to indicate when and how certain element features are to be used.
BOLDCAPS Items in bold uppercase should be typed in exactly as shown.
Bold Italics Items in bold italics should be replaced by user text; symbols,
operators, expressions, etc.
. : , # Periods, colons, commas, and pound signs should be typed in where
shown.
Angle bracket symbols enclose optional items. Enter the enclosed
item if desired. Do not enter the angle brackets.
Double line Separates instruction from the result value.
Common Syntax Elements
When reading the syntax definitions in this chapter, keep in mind that all Propeller Assembly
instructions have three common, optional elements: a label, a condition, and effects. Each
Propeller Assembly instruction has the following basic syntax:
Label Condition Instruction Operands Effects
Label — an optional statement label. Label can be global (starting with an underscore
‘_’ or a letter) or can be local (starting with a colon ‘:’). Local Labels must be
separated from other same-named local labels by at least one global label. Label is
used by instructions like
JMP, CALL and COGINIT to designate the target destination.
See
T
Global and Local Labels on page 242 for more information.
Condition — an optional execution condition (IF_C, IF_Z, etc.) that causes Instruction
to be executed or not. See
IF_x (Conditions) on page 295 for more information.
Instruction and Operands — a Propeller Assembly instruction (MOV, ADD, COGINIT, etc.)
and its zero, one, or two operands as required by the Instruction.
Effects — an optional list of one to three execution effects (WZ, WC, WR, and NR) to apply
to the instruction, if executed. They cause the Instruction to modify the Z flag, C