
Continued from preceding page.
No. 5484-17/21
LC66354C, 66356C, 66358C
Instruction code
Affected
status
bits
Mnemonic
Operation
Description
Note
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
[Data pointer manipulation instructions]
IL
Increment DP
L
0 0 0 1
0 0 0 1
1
1
DP
L
←
(DP
L
) + 1
Increment the contents
of DP
L
.
Decrement the contents
of DP
L
.
Increment the contents
of DP
Y
.
Decrement the contents
of DP
Y
.
Transfer the contents of AC
to DP
H
.
Transfer the contents of DP
H
to AC.
ZF
DL
Decrement DP
L
0 0 1 0
0 0 0 1
1
1
DP
L
←
(DP
L
) – 1
ZF
IY
Increment DP
Y
0 0 0 1
0 0 1 1
1
1
DP
Y
←
(DP
Y
) + 1
ZF
DY
Decrement DP
Y
0 0 1 0
0 0 1 1
1
1
DP
Y
←
(DP
Y
) – 1
ZF
TAH
Transfer AC to DP
H
1 1 0 0
1 1 1 1
1 1 1 1
0 0 0 0
2
2
DP
H
←
(AC)
THA
Transfer DP
H
to AC
1 1 0 0
1 1 1 0
1 1 1 1
0 0 0 0
2
2
AC
←
(DP
H
)
ZF
XAH
Exchange AC
with DP
H
0 1 0 0
0 0 0 0
1
1
(AC)
(DP
H
)
Exchange the contents of AC
and DP
H
.
Transfer the contents of AC
to DP
L
.
Transfer the contents of DP
L
to AC.
TAL
Transfer AC to DP
L
1 1 0 0
1 1 1 1
1 1 1 1
0 0 0 1
2
2
DP
L
←
(AC)
TLA
Transfer DP
L
to AC
1 1 0 0
1 1 1 0
1 1 1 1
0 0 0 1
2
2
AC
←
(DP
L
)
ZF
XAL
Exchange AC
with DP
L
0 1 0 0
0 0 0 1
1
1
(AC)
(DP
L
)
Exchange the contents of AC
and DP
L
.
Transfer the contents of AC
to DP
X
.
Transfer the contents of DP
X
to AC.
TAX
Transfer AC to DP
X
1 1 0 0
1 1 1 1
1 1 1 1
0 0 1 0
2
2
DP
X
←
(AC)
TXA
Transfer DP
X
to AC
1 1 0 0
1 1 1 0
1 1 1 1
0 0 1 0
2
2
AC
←
(DP
X
)
ZF
XAX
Exchange AC
with DP
X
0 1 0 0
0 0 1 0
1
1
(AC)
(DP
X
)
Exchange the contents of AC
and DP
X
.
Transfer the contents of AC
to DP
Y
.
Transfer the contents of DP
Y
to AC.
TAY
Transfer AC to DP
Y
1 1 0 0
1 1 1 1
1 1 1 1
0 0 1 1
2
2
DP
Y
←
(AC)
TYA
Transfer DP
Y
to AC
1 1 0 0
1 1 1 0
1 1 1 1
0 0 1 1
2
2
AC
←
(DP
Y
)
ZF
XAY
Exchange AC
with DP
Y
0 1 0 0
0 0 1 1
1
1
(AC)
(DP
Y
)
Exchange the contents of AC
and DP
Y
.
[Flag manipulation instructions]
SFB n4
Set flag bit
0 1 1 1
n
3
n
2
n
1
n
0
1
1
Fn
←
1
Set the flag specified
by n4 to 1.
RFB n4
Reset flag bit
0 0 1 1
n
3
n
2
n
1
n
0
1
1
Fn
←
0
Reset the flag specified
by n4 to 0.
ZF
[Jump and subroutine instructions]
PC13, 12
←
PC13, 12
PC11 to 0
←
P
11
to P
8
This becomes
PC12 + (PC12)
immediately
following a BANK
instruction.
JMP
addr
Jump in the current
bank
1 1 1 0 P
11
P
10
P
9
P
8
P
7
P
6
P
5
P
4
P
3
P
2
P
1
P
0
Jump to the location in the
same bank specified by the
immediate data P12.
2
2
Jump to the address
stored at E and AC
in the current page
PC13 to 8
←
PC13 to 8,
PC7 to 4
←
(E),
PC3 to 0
←
(AC)
PC13 to 11
←
0,
PC10 to 0
←
P
10
to P
0
,
M4 (SP)
←
(CF, ZF, PC13 to 0),
SP
←
(SP)-4
PC13 to 6,
PC10
←
0,
PC5 to 2
←
P
3
to P
0
, Call a subroutine on page 0
M4 (SP)
←
in bank 0.
(CF, ZF, PC12 to 0),
SP
←
SP-4
Change the memory bank
and register bank.
Jump to the location
determined by replacing the
lower 8 bits of the PC
by E, AC.
JPEA
0 0 1 0
0 1 1 1
1
1
CAL
addr
Call subroutine
0 1 0 1
P
7
P
6
P
5
P
4
P
3
P
2
P
1
P
0
0 P
10
P
9
P
8
2
2
Call a subroutine.
CZP
addr
Call subroutine in the
zero page
1 0 1 0
P
3
P
2
P
1
P
0
1
2
BANK
Change bank
0 0 0 1
1 0 1 1
1
1
N
b
N
c
Continued on next page.