Preliminary
subf
Subtract From
subf
RT, RA, RB
subf.
RT, RA, RB
subfo
RT, RA, RB
subfo.
RT, RA, RB
31
0
6
(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
Table 9-29. Extended Mnemonics for subf, subf., subfo, subfo.
Mnemonic
Operands
sub
sub.
RT, RA, RB
subo
subo.
instrset.fm.
September 12, 2002
OE=0, Rc=0
OE=0, Rc=1
OE=1, Rc=0
OE=1, Rc=1
RT
RA
11
Subtract (RB) from (RA).
(RT)
(RB) + (RA) + 1.
Extended mnemonic for
subf RT,RB,RA
Extended mnemonic for
subf. RT,RB,RA
Extended mnemonic for
subfo RT,RB,RA
Extended mnemonic for
subfo. RT,RB,RA
PPC440x5 CPU Core User's Manual
RB
OE
16
21 22
Function
subf
Subtract From
40
Rc
31
Other Registers
Altered
CR[CR0]
XER[SO, OV]
CR[CR0]
XER[SO, OV]
Page 429 of 589