122-32000 Parallax Inc, 122-32000 Datasheet - Page 393

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
When assembly code is launched into a cog, the cog begins execution at Cog RAM address 0
so it is critical to assemble at least one instruction for that position. Usually an entire
assembly program begins at location 0. For example:
DAT
Toggle
:Loop
The
instruction,
is assembled into Cog RAM location 1, etc.
RCL
Instruction: Rotate C left into value by specified number of bits.
RCL
Result: Value has Bits copies of C rotated left into it.
Explanation
RCL
value for each of the LSBs affected.
If the
effect is specified, at the end of the operation, the C flag is set equal to Value’s original bit
31. The result is written to Value unless the
–INSTR– ZCRI –CON–
001101 001i 1111 ddddddddd sssssssss
(Rotate Carry Left) performs a rotate left of Value, Bits times, using the C flag’s original
Value,
ORG
WZ
Value
Bits
to rotate C leftwards into.
effect is specified, the Z flag is set (1) if the resulting Value equals zero. If the
statement in this example sets the assembly pointer to zero (0), so the next
mov dira, Pin
(s-field) is a register or a 5-bit literal whose value is the number of bits of Value
#
(d-field) is the register in which to rotate C leftwards.
Bits
ORG
mov
mov
mov
jmp
–DEST–
, is assembled into Cog RAM location 0, the instruction after that
0
dira, Pin
outa, Pin
outa, #0
#:Loop
–SRC–
5: Assembly Language Reference –
NR
effect is specified.
Result = 0
Z Result
Propeller Manual v1.0 · Page 393
C Result
D[31]
Result
Written
Clocks
4
WC

Related parts for 122-32000