B-36 PPC405 Core User’s Manual
subf RT, RA, RB Subtract (RA) from (RB).
(RT)
←¬(RA) + (RB) + 1.
9-176
subf. CR[CR0]
subfo XER[SO, OV]
subfo. CR[CR0]
XER[SO, OV]
subfc RT, RA, RB Subtract (RA) from (RB).
(RT)
←¬(RA) + (RB) + 1.
Place carry-out in XER[CA].
9-177
subfc. CR[CR0]
subfco XER[SO, OV]
subfco. CR[CR0]
XER[SO, OV]
subfe RT, RA, RB Subtract (RA) from (RB) with carry-in.
(RT)
←¬(RA) + (RB) + XER[CA].
Place carry-out in XER[CA].
9-178
subfe. CR[CR0]
subfeo XER[SO, OV]
subfeo. CR[CR0]
XER[SO, OV]
subfic RT, RA, IM Subtract (RA) from EXTS(IM).
(RT)
←¬(RA) + EXTS(IM) + 1.
Place carry-out in XER[CA].
9-179
subfme RT, RA, RB Subtract (RA) from (–1) with carry-in.
(RT)
←¬(RA) + (–1) + XER[CA].
Place carry-out in XER[CA].
9-180
subfme. CR[CR0]
subfmeo XER[SO, OV]
subfmeo. CR[CR0]
XER[SO, OV]
subfze RT, RA, RB Subtract (RA) from zero with carry-in.
(RT)
←¬(RA) + XER[CA].
Place carry-out in XER[CA].
9-180
subfze. CR[CR0]
subfzeo XER[SO, OV]
subfzeo. CR[CR0]
XER[SO, OV]
xor RA, RS, RB XOR (RS) with (RB).
Place result in RA.
9-198
xor. CR[CR0]
xori RA, RS, IM XOR (RS) with (
16
0 || IM).
Place result in RA.
9-199
xoris RA, RS, IM XOR (RS) with (IM
||
16
0).
Place result in RA.
9-200
Table B-7. Arithmetic and Logical Instructions (continued)
Mnemonic Operands Function
Other Registers
Changed Page