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

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
ABS
Instruction: Get the absolute value of a number.
ABS
Result: Absolute SValue is stored in AValue.
Explanation
ABS
If the
the C flag is set (1) if SValue is negative, or cleared (0) if SValue is positive. The result is
written to AValue unless the
Literal SValues are zero-extended, so
–INSTR– ZCRI –CON–
101010 001i 1111 ddddddddd sssssssss
takes the absolute value of SValue and writes the result into AValue.
AValue,
WZ
AValue
SValue
AValue.
effect is specified, the Z flag is set (1) if SValue is zero. If the
#
(d-field) is the register in which to write the absolute of SValue.
(s-field) is a register or a 9-bit literal whose absolute value will be written to
SValue
–DEST–
NR
effect is specified.
–SRC–
ABS
5: Assembly Language Reference –
is really best used with register SValues.
Result = 0
Z Result
SValue[31]
Propeller Manual v1.0 · Page 353
C Result
WC
effect is specified,
Result
Written
Clocks
4

Related parts for 122-32000