mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 1269

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
MPC823 Instruction Set—rlwimi
rlwimi
Assembler Syntax
Definition
Operation
Description
FIELD
FIELD
BIT
BIT
16
0
17
1
SH
18
2
Freescale Semiconductor, Inc.
20
For More Information On This Product,
19
3
rlwimi.
r
m
rA
by operand SH. A mask is generated having 1 bits from bit MB
through bit ME and 0 bits elsewhere. The rotated data is inserted
into rA under control of the generated mask.
Note that rlwimi can be used to insert a bit field into the contents
of rA using the methods shown below:
Other registers altered:
rlwimi
Rotate Left Word Immediate then Mask Insert
n
The contents of rS are rotated left the number of bits specified
20
ROTL(rS,
MPC823 REFERENCE MANUAL
4
SH
MASK(MB, ME)
(r & m) | (rA & ¬ m)
To insert an n-bit field, that is left-justified rS, into rA
starting at bit position b, set SH = 32 – b, MB = b, and
ME = (b + n) – 1.
To insert an n-bit field, that is right-justified in rS, into rA
starting at bit position b, set SH = 32 – (b + n), MB = b,
and ME = (b + n) – 1.
Condition Register (CR0 field):
Affected: LT, GT, EQ, SO(if Rc = 1)
Go to: www.freescale.com
21
5
22
rA,rS,SH,MB,ME (Rc = 0)
rA,rS,SH,MB,ME (Rc = 1)
6
n
)
MB
23
7
24
S
8
25
9
10
26
11
27
ME
12
28
13
29
A
MOTOROLA
14
30
RC
15
31

Related parts for mpc823rg