Instruction Set 9-13
addme
Add to Minus One Extended
addme
Add to Minus One Extended
(RT) ← (RA) + XER[CA] + (–1)
if (RA) + XER[CA] + 0xFFFF FFFF 2
32
– 1 then
XER[CA]
← 1
else
XER[CA]
← 0
The sum of the contents of register RA, XER[CA], and –1 is placed into register RT.
XER[CA] is set to a value determined by the unsigned magnitude of the result of the add operation.
Registers Altered
•RT
• XER[CA]
• CR[CR0]
LT, GT, EQ, SO
if Rc contains 1
• XER[SO, OV] if OE contains 1
Invalid Instruction Forms
• Reserved fields
Architecture Note
This instruction is part of the PowerPC User Instruction Set Architecture.
addme RT, RA OE= 0, Rc= 0
addme. RT, RA OE= 0, Rc= 1
addmeo RT, RA OE=1, Rc= 0
addmeo. RT, RA OE =1, Rc=1
31 RT RA OE 234 Rc
0 6 11 16 21 22 31
>
u