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

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
DJNZ
Instruction: Decrement value and jump to address if not zero.
DJNZ
Result: Value-1 is written to Value.
Explanation
DJNZ
When the
the
decremented result is written to Value unless the
DJNZ
If it must jump it takes 4 clock cycles, if no jump occurs it takes 8 clock cycles. Since loops
utilizing
Page 370 · Propeller Manual v1.0
–INSTR– ZCRI –CON–
111001 001i 1111 ddddddddd sssssssss
WC
decrements the Value register and jumps to Address if the result is not zero.
requires a different amount of clock cycles depending on whether or not it has to jump.
Value,
effect is specified, the C flag is set (1) if the decrement results in an underflow. The
Value
Address
when the decremented Value is not zero.
– Assembly Language Reference
DJNZ
WZ
effect is specified, the Z flag is set (1) if the decremented Value is zero. When
(d-field) is the register to decrement and test.
#
need to be fast, it is optimized in this way for speed.
(s-field) is the register or a 9-bit literal whose value is the address to jump to
Address
–DEST–
–SRC–
Result = 0
Z Result
NR
effect is specified.
Unsigned Borrow
C Result
Written
Result
Clocks
4 or 8

Related parts for 122-32000