MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
899
Preliminary—Subject to Change Without Notice
Table 23-75. ALU Operation Selection - ALUOP
ALUOP
Operation
Comment
00000
AS mults BS[7:0]
signed multiplication
00001
AS multu BS[7:0]
unsigned multiplication
00010
AS fmults BS[7:0]
signed fractional multiplication
00011
AS fmultu BS[7:0]
unsigned fractional multiplication
00100
AS mults BS[15:0]
signed multiplication
00101
AS multu BS[15:0]
unsigned multiplication
00110
AS fmults BS[15:0]
signed fractional multiplication
00111
AS fmultu BS[15:0]
unsigned fractional multiplication
01000
AS mults BS[23:0]
signed multiplication
01001
AS multu BS[23:0]
unsigned multiplication
01010
AS macs BS[23:0]
signed multiply-accumulate
01011
AS macu BS[23:0]
unsigned multiply-accumulate
01100
AS div BS[7:0]
unsigned division by 8-bit value
01101
AS div BS[15:0]
unsigned division by 16-bit value
01110
AS div BS [23:0]
unsigned division by 24-bit value
01111
n.a.
RESERVED
10000
AS[23:0] | BS[23:0]
24 bit bitwise OR
10001
AS[23:0] ^ BS[23:0]
24 bit bitwise XOR
10010
AS[23:0] & BS[23:0]
24 bit bitwise AND
10011
abs(AS)
absolute value of AS
10100
AS + BS
arithmetic addition
10101
(AS + BS) shl 1
arithmetic addition with 1-bit post-ALU shift left. (
”)
10110
(AS + BS) shr 1
arithmetic addition with 1-bit post-ALU shift right (
”)
10111
(AS + BS) ror 1
arithmetic addition with 1-bit post-ALU rotate right (
”)
11000
AS adc/sbc BS
1
1
Addition/Subtraction is selected by field BINV (see
Section 23.4.9.2.4, “B-Source Inversion
addition/subtraction with C flag (
Section 23.4.9.2.5, “Carry-in Control
”)
11001
AS shl (2^(BS[1:0]+1))
AS is shifted left: 2 bits for BS=0; 4 for BS=1; 8 for BS=2; 16 for BS=3
11010
AS shr (2^(BS[1:0]+1))
AS is shifted right: 2 bits for BS=0; 4 for BS=1; 8 for BS=2; 16 for BS=3
11011
AS ror (2^(BS[1:0]+1))
AS is rotated right: 2 bits for BS=0; 4 for BS=1; 8 for BS=2; 16 for BS=3
11100
AS exch BS[4:0]
exchange C flag and AS bit determined by BS[4:0] (
”)
11101
AS setb BS[4:0]
set bit in AS determined by BS[4:0]
2
2
In setb and clrb operations, the register that drives A source is not changed, unless selected as destination of the
operation.
11110
AS clrb BS[4:0]
clear bit in AS determined by BS[4:0]
11111
n.a.
RESERVED