CHAPTER 4 INSTRUCTION SET
User’s Manual U11047EJ3V0UM00
46
Mnemonic
Operand
Byte
Clock
Operation
Flag
Z
AC CY
ADDW
AX, #word
3
6
AX, CY
←
AX + word
×
×
×
SUBW
AX, #word
3
6
AX, CY
←
AX – word
×
×
×
CMPW
AX, #word
3
6
AX – word
×
×
×
INC
r
2
4
r
←
r + 1
×
×
saddr
2
4
(saddr)
←
(saddr) + 1
×
×
DEC
r
2
4
r
←
r – 1
×
×
saddr
2
4
(saddr)
←
(saddr) – 1
×
×
INCW
rp
1
4
rp
←
rp + 1
DECW
rp
1
4
rp
←
rp – 1
ROR
A, 1
1
2
(CY, A
7
←
A
0
, A
m–1
←
A
m
)
×
1
×
ROL
A, 1
1
2
(CY, A
0
←
A
7
, A
m+1
←
A
m
)
×
1
×
RORC
A, 1
1
2
(CY
←
A
0
, A
7
←
CY, A
m–1
←
A
m
)
×
1
×
ROLC
A, 1
1
2
(CY
←
A
7
, A
0
←
CY, A
m+1
←
A
m
)
×
1
×
SET1
saddr.bit
3
6
(saddr.bit)
←
1
sfr.bit
3
6
sfr.bit
←
1
A.bit
2
4
A.bit
←
1
PSW.bit
3
6
PSW.bit
←
1
×
×
×
[HL].bit
2
10
(HL).bit
←
1
CLR1
saddr.bit
3
6
(saddr.bit)
←
0
sfr.bit
3
6
sfr.bit
←
0
A.bit
2
4
A.bit
←
0
PSW.bit
3
6
PSW.bit
←
0
×
×
×
[HL].bit
2
10
(HL).bit
←
0
SET1
CY
1
2
CY
←
1
1
CLR1
CY
1
2
CY
←
0
0
NOT1
CY
1
2
CY
←
_____
CY
×
CALL
!addr16
3
6
(SP – 1)
←
(PC + 3)
H
, (SP – 2)
←
(PC + 3)
L
,
PC
←
addr16, SP
←
SP – 2
CALLT
[addr5]
1
8
(SP – 1)
←
(PC + 1)
H
, (SP – 2)
←
(PC + 1)
L
,
PC
H
←
(00000000, addr5 + 1),
PC
L
←
(00000000, addr5), SP
←
SP – 2
Remark
One instruction clock cycle is equal to one CPU clock (f
CPU
) cycle selected by the processor clock control
register (PCC).
Summary of Contents for 78K/0S Series
Page 2: ...User s Manual U11047EJ3V0UM00 2 MEMO ...
Page 14: ...User s Manual U11047EJ3V0UM00 14 MEMO ...
Page 28: ...User s Manual U11047EJ3V0UM00 28 MEMO ...
Page 118: ...User s Manual U11047EJ3V0UM00 118 MEMO ...
Page 120: ...User s Manual U11047EJ3V0UM00 120 MEMO ...