Subfc; Table 9-30. Extended Mnemonics For Subfc, Subfc., Subfco, Subfco - IBM PPC440X5 CPU Core User Manual

Cpu core
Table of Contents

Advertisement

subfc

Subtract From Carrying
PPC440x5 CPU Core User's Manual
subfc
Subtract From Carrying
subfc
RT, RA, RB
subfc.
RT, RA, RB
subfco
RT, RA, RB
subfco.
RT, RA, RB
31
0
6
(RT)
(RA) + (RB) + 1
u
if
(RA) + (RB) + 1
>
XER[CA]
1
else
XER[CA]
0
The sum of the ones complement of register RA, register RB, and 1 is stored into register RT.
XER[CA] is set to a value determined by the unsigned magnitude of the result of the subtract operation.
Registers Altered
• RT
• XER[CA]
• CR[CR0] if Rc contains 1
• XER[SO, OV] if OE contains 1

Table 9-30. Extended Mnemonics for subfc, subfc., subfco, subfco.

Mnemonic
Operands
subc
subc.
RT, RA, RB
subco
subco.
Page 430 of 589
OE=0, Rc=0
OE=0, Rc=1
OE=1, Rc=0
OE=1, Rc=1
RT
RA
11
32
2
– 1 then
Subtract (RB) from (RA).
(RT)
(RB) + (RA) + 1.
Place carry-out in XER[CA].
Extended mnemonic for
subfc RT,RB,RA
Extended mnemonic for
subfc. RT,RB,RA
Extended mnemonic for
subfco RT,RB,RA
Extended mnemonic for
subfco. RT,RB,RA
RB
OE
16
21 22
Function
Preliminary
8
Rc
31
Other Registers
Altered
CR[CR0]
XER[SO, OV]
CR[CR0]
XER[SO, OV]
instrset.fm.
September 12, 2002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents