35.3.2.5. INTEGER LOGICAL ON POWER PC
0..5 opcode1
6..10 S
11..15 A
16..20 B
21..30 opcode2
31 Rc
Rc opcode1.opcode2
and rA,rS,rB 0 31.28 And
and. rA,rS,rB 1
rA <- rS AND rB
andc rA,rS,rB 0 31.60 And with Complement
andc. rA,rS,rB 1
rA <- rS AND (NOT rB)
eqv rA,rS,rB 0 31.284 Equivalent
eqv. rA,rS,rB 1
rA <- rS EQV rB
nor rA,rS,rB 0 31.124 NOR
nor. rA,rS,rB 1
rA <- NOT (rS OR rB )
or rA,rS,rB 0 31.444 OR
or. rA,rS,rB 1
rA <- rS OR rB
orc rA,rS,rB 0 31.412 OR with Complement
orc. rA,rS,rB 1
rA <- rS OR (NOT rB)
xor rA,rS,rB 0 31.316 XOR
xor. rA,rS,rB 1
rA <- rS XOR rB
// ----------------------------------------------------------
0..5 opcode1
6..10 S
11..15 A
16..31 SIMM
opcode1
andi. rA,rS,UIMM 28 AND Immediate
rA <- rS AND zero_ext(UIMM)
andis. rA,rS,UIMM 29 AND Immediate Shifted
rA <- rS AND zero_ext(UIMM << 16)
ori rA,rS,UIMM 24 OR Immediate
rA <- rS OR zero_ext(UIMM)
oris rA,rS,UIMM 25 OR Immediate Shifted
rA <- rS OR zero_ext(UIMM << 16)
xori rA,rS,UIMM 26 XOR Immeditae
rA <- rS XOR zero_ext(UIMM)
xoris rA,rS,UIMM 27 XOR Immediate Shifted
rA <- rS XOR zero_ext(UIMM << 16)
Note:
nop code is ori 0,0,0
// ----------------------------------------------------------------------
Index Prev Next