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

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
ABSNEG
Instruction: Get the negative of a number’s absolute value.
ABSNEG
Result: Absolute negative of SValue is stored in NValue.
Explanation
ABSNEG
If the
the C flag is set (1) if SValue is negative, or cleared (0) if SValue is positive. The result is
written to NValue unless the
Literal SValues are zero-extended, so
ADD
Instruction: Add two unsigned values.
ADD
Result: Sum of unsigned Value1 and unsigned Value2 is stored in Value1.
Page 354 · Propeller Manual v1.0
–INSTR– ZCRI –CON–
–INSTR– ZCRI –CON–
101011 001i 1111 ddddddddd sssssssss
100000 001i 1111 ddddddddd sssssssss
Value1,
WZ
negates the absolute value of SValue and writes the result into NValue.
NValue
value.
SValue
written to NValue.
Value1
destination in which to write the result.
Value2
effect is specified, the Z flag is set (1) if SValue is zero. If the
NValue,
,
#
(s-field) is a register or a 9-bit literal whose value is added into Value1.
(s-field) is a register or a 9-bit literal whose absolute negative value will be
(d-field) is the register containing the value to add to Value2 and is the
(d-field) is the register in which to write the negative of SValue’s absolute
Value2
#
SValue
– Assembly Language Reference
–DEST–
–DEST–
NR
effect is specified.
–SRC–
–SRC–
ABS
is really best used with register SValues.
Result = 0
Result = 0
Z Result
Z Result
Unsigned Carry
C Result
C Result
S[31]
WC
effect is specified,
Written
Written
Result
Result
Clocks
Clocks
4
4

Related parts for 122-32000