Chapter 10 XGATE (S12XGATEV3)
MC9S12XE-Family Reference Manual , Rev. 1.19
432
Freescale Semiconductor
Operation
M[RB, #OFFS5
] ⇒
RD
M[RB, RI
]
⇒
RD
M[RB, RI]
⇒
RD;
RI+2
⇒
RI
1
RI-2
⇒
RI;
M[RS, RI]
⇒
RD
IMM16
⇒
RD (translates to LDL RD, #IMM16[7:0]; LDH RD, #IMM16[15:8])
Loads a 16 bit value into the register RD.
CCR Effects
Code and CPU Cycles
LDW
Load Word from Memory
LDW
1. If the same general purpose register is used as index (RI) and destination register (RD), the content of the register will not be
incremented after the data move: M[RB, RI]
⇒
RD
N
Z
V
C
—
—
—
—
N:
Not affected.
Z:
Not affected.
V:
Not affected.
C:
Not affected.
Source Form
Address
Mode
Machine Code
Cycles
LDW RD, (RB, #OFFS5)
IDO5
0
1
0
0
1
RD
RB
OFFS5
PR
LDW RD, (RB, RI)
IDR
0
1
1
0
1
RD
RB
RI
0
0
PR
LDW RD, (RB, RI+)
IDR+
0
1
1
0
1
RD
RB
RI
0
1
PR
LDW RD, (RB, -RI)
-IDR
0
1
1
0
1
RD
RB
RI
1
0
PR
LDW RD, #IMM16
IMM8
1
1
1
1
0
RD
IMM16[7:0]
P
IMM8
1
1
1
1
1
RD
IMM16[15:8]
P
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:
S12XE
products
in
208
MAPBGA
packages