mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 1273

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
MPC823 Instruction Set—rlwnm
rlwnm
Assembler Syntax
Definition
Operation
Description
FIELD
FIELD
BIT
BIT
16
0
17
1
18
B
2
Freescale Semiconductor, Inc.
23
For More Information On This Product,
19
3
rlwnm.
r
m
rA
by the low-order five bits of rB. A mask is generated having 1 bits
from bit MB through bit ME and 0 bits elsewhere. The rotated
data is ANDed with the generated mask and the result is placed
into rA.
rlwnm can be used to extract and rotate bit fields using the
methods shown as follows:
rlwnm
Rotate Left Word then AND with Mask
n
The contents of rS are rotated left the number of bits specified
20
ROTL(rS,
MPC823 REFERENCE MANUAL
4
rB[27-31]
MASK(MB, ME)
r & m
To extract an n field, that starts at variable bit position b
in rS, right-justified into rA (clearing the remaining
32 – n bits of rA), by setting the low-order five bits of rB
to b + n, MB = 32 – n, and ME = 31.
To extract an n field, that starts at variable bit position b
in rS, left-justified into rA (clearing the remaining 32 – n
bits of rA), by setting the low-order five bits of rB to b,
MB = 0, and ME = n – 1.
To rotate the contents of a register left (or right) by n bits,
by setting the low-order five bits of rB to n (32 – n),
MB = 0, and ME = 31.
Go to: www.freescale.com
21
5
rA,rS,rB,MB,ME (Rc = 1)
22
rA,rS,rB,MB,ME (Rc = 0)
6
n
)
MB
23
7
24
S
8
25
9
10
26
11
27
ME
12
28
13
29
A
MOTOROLA
14
30
15
31
0

Related parts for mpc823rg