![](http://pdfasset.owneriq.net/f/d2/fd2dded2-0150-4c12-8506-5af61ec62dd1/fd2dded2-0150-4c12-8506-5af61ec62dd1-bgbe.png)
9-10 PPC405 Core User’s Manual
addic
Add Immediate Carrying
addic
Add Immediate Carrying
(RT) ← (RA) + EXTS(IM)
if (RA) + EXTS(IM) 2
32
– 1 then
XER[CA]
← 1
else
XER[CA]
← 0
The sum of the contents of register RA and the contents of the IM field, sign-extended to 32 bits, 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]
Architecture Note
This instruction is part of the PowerPC User Instruction Set Architecture.
addic RT, RA, IM
12 RT RA IM
0 6 11 16 31
Table 9-4. Extended Mnemonics for addic
Mnemonic Operands Function
Other Registers
Altered
subic RT, RA, IM Subtract EXTS(IM) from (RA)
Place result in RT; place carry-out in XER[CA].
Extended mnemonic for
addic RT,RA,−IM
>
u