Excalibur electronic A-MNL-NIOSPROG-01.1 用户手册
34
Altera Corporation
32-Bit Instruction Set
ABS
Absolute Value
Operation:
RA
← |RA|
Assembler Syntax:
ABS %rA
Example:
ABS %r6
Description:
Calculate the absolute value of RA; store the result in RA.
Condition Codes:
Flags: Unaffected
Instruction Format:
Rw
Instruction Fields:
A = Register index of operand RA
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
1
1
1
1
0
0
0
1
0
A
N
V
Z
C
−
−
−
−