subf
Subtract From
Preliminary PPC440x5 CPU Core User’s Manual
instrset.fm.
September 12, 2002 Page 429 of 589
subf
Subtract From
(RT) ←¬(RA) + (RB) + 1
The sum of the ones complement of register RA, register RB, and 1 is stored into register RT.
Registers Altered
•RT
• CR[CR0] if Rc contains 1
• XER[SO, OV] if OE contains 1
subf RT, RA, RB OE=0, Rc=0
subf. RT, RA, RB OE=0, Rc=1
subfo RT, RA, RB OE=1, Rc=0
subfo. RT, RA, RB OE=1, Rc=1
31 RT RA RB OE 40 Rc
0 6 11 16 21 22 31
Table 9-29. Extended Mnemonics for subf, subf., subfo, subfo.
Mnemonic Operands Function
Other Registers
Altered
sub
RT, RA, RB
Subtract (RB) from (RA).
(RT)
←¬(RB) + (RA) + 1.
Extended mnemonic for
subf RT,RB,RA
sub.
Extended mnemonic for
subf. RT,RB,RA
CR[CR0]
subo
Extended mnemonic for
subfo RT,RB,RA
XER[SO, OV]
subo.
Extended mnemonic for
subfo. RT,RB,RA
CR[CR0]
XER[SO, OV]