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IR
4
LD
X
3E
X
T
4
LD
X
3I
X
2
5
LD
X
4S
P
2
3
LD
X
2I
X
1
4
LD
X
3
SP1
2
LD
X
1I
X
F
5
B
RCL
R7
3D
IR
4
BC
L
R
7
2D
IR
3
BI
H
2R
E
L
3
CL
R
2D
IR
1
CL
RA
1I
N
H
1
CL
RX
1I
N
H
3
CL
R
2I
X
1
4
CL
R
3
SP1
2
CL
R
1I
X
1
WAI
T
1I
N
H
1
TX
A
1I
N
H
2
AI
X
2I
M
M
3
ST
X
2D
IR
4
ST
X
3E
X
T
4
ST
X
3I
X
2
5
ST
X
4S
P
2
3
ST
X
2I
X
1
4
ST
X
3
SP1
2
ST
X
1I
X
IN
H
In
h
er
en
t
R
E
L
R
e
lat
ive
S
P
1
S
tack P
o
in
te
r,
8
-B
it
O
ff
set
IMM
Im
m
ed
iat
e
IX
In
d
exed
, N
o
O
ff
set
S
P
2
S
tack P
o
in
te
r,
1
6
-B
it
O
ff
set
D
IR
D
ir
ect
IX
1
In
d
exed
, 8-
B
it
O
ff
set
IX
+
In
d
exed
, N
o
O
ff
set
w
it
h
E
X
T
E
x
te
n
d
ed
IX
2
In
d
exed
, 16
-B
it
O
ff
set
P
o
st
In
cr
em
en
t
D
D
D
ir
ect
-D
ir
ect
IMD
Im
m
ed
iat
e
-D
ir
ect
IX
1+
In
d
exed
, 1-
B
y
te
O
ff
set
w
it
h
IX
+
D
In
d
exed
-D
ir
ect
D
IX
+
D
ir
ect
-I
n
d
exed
P
o
st
In
cr
em
en
t
*
P
re
-b
y
te
f
o
r st
a
ck p
o
in
te
r in
d
exed
in
st
ru
c
tio
n
s
Hig
h
Byt
e
o
f O
p
co
d
e
in
Hex
a
d
e
c
im
a
l
F
L
o
w
B
y
te
o
f O
p
co
d
e
in
H
exad
ecim
a
l
0
2
SU
B
1I
X
H
C
08 C
y
cles
O
pc
o
de
M
n
e
m
oni
c
N
u
mbe
r of
B
y
te
s
/
A
d
dr
e
s
s
in
g M
ode
HIG
H
LO
W
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..