mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 1202

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
divw
Assembler Syntax
Definition
Operation
Description
FIELD
FIELD
BIT
BIT
16
0
17
1
18
B
2
Freescale Semiconductor, Inc.
31
For More Information On This Product,
19
3
divw.
divwo
divwo.
divisor
r D
r B. The 32-bit quotient is formed and placed in r D. The
remainder is not supplied as a result.
Both the operands and the quotient are interpreted as signed
integers. The quotient is the unique signed integer that satisfies
the equation—dividend = (quotient * divisor) + r where 0
|divisor| (if the dividend is non-negative), and –|divisor| < r 0 (if
the dividend is negative).
If an attempt is made to perform any of the divisions—
0x8000_0000
are undefined, as are the contents of the LT, GT, and EQ bits of
the CR0 field (if Rc = 1). In this case, if OE = 1 then OV is set.
The 32-bit signed remainder of dividing the contents of rA by the
contents of rB can be computed as follows, except in the case
that the contents of rA = –231 and the contents of rB = –1.
divw
mullw
subf
divw
Divide Word
dividend
The dividend is the contents of r A. The divisor is the contents of
20
MPC823 REFERENCE MANUAL
4
dividend
Go to: www.freescale.com
OE
21
5
( r B)
( r A)
rD,rA,rB (OE = 0 Rc = 0)
rD,rA,rB (OE = 0 Rc = 1)
rD,rA,rB (OE = 1 Rc = 0)
rD,rA,rB (OE = 1 Rc = 1)
r D ,r A ,r B
r D ,r D ,r B
r D ,r D ,r A
22
6
–1or <anything>
divisor
23
7
24
D
8
# r D = quotient
# r D = quotient divisor
# r D = remainder
25
9
491
10
26
0—then the contents of r D
MPC823 Instruction Set—divw
11
27
12
28
13
29
A
14
30
r <
B-49
RC
15
31

Related parts for mpc823rg