Motorola MPC823e Reference Manual page 1267

Microprocessor for mobile computing
Table of Contents

Advertisement

neg
Assembler Syntax
BIT
0
1
2
FIELD
31
BIT
16
17
18
FIELD
00000
Definition
Operation
Description
MOTOROLA
neg
rD,rA (OE = 0 Rc = 0)
neg.
rD,rA (OE = 0 Rc = 1)
nego
rD,rA (OE = 1 Rc = 0)
nego.
rD,rA (OE = 1 Rc = 1)
3
4
5
6
7
19
20
21
22
23
OE
Negate
rD ← ¬ (rA) + 1
The value 1 is added to the complement of the value in rA, and
the resulting two's complement is placed into rD. If rA contains
the most negative 32-bit number (0x8000_0000), the result is the
most negative number and, if OE = 1, OV is set.
Other registers altered:
Condition Register (CR0 field):
Affected: LT, GT, EQ, SO (if Rc = 1)
XER:
Affected: SO OV (if OE = 1)
POWERPC ARCHITECTURE
LEVEL
UISA
MPC823e REFERENCE MANUAL
MPC823e Instruction Set—neg
8
9
10
11
12
D
24
25
26
27
28
104
SUPERVISOR
OPTIONAL
LEVEL
13
14
15
A
29
30
31
RC
FORM
XO
B-109

Advertisement

Table of Contents
loading

Table of Contents