CHAPTER 4 INSTRUCTION SET
User’s Manual U11047EJ3V0UM00
47
Mnemonic
Operand
Byte
Clock
Operation
Flag
Z
AC CY
RET
1
6
PC
H
←
(SP + 1), PC
L
←
(SP), SP
←
SP + 2
RETI
1
8
PC
H
←
(SP + 1), PC
L
←
(SP),
PSW
←
(SP + 2), SP
←
SP + 3, NMIS
←
0
R
R
R
PUSH
PSW
1
2
(SP – 1)
←
PSW, SP
←
SP – 1
rp
1
4
(SP – 1)
←
rp
H
, (SP – 2)
←
rp
L
, SP
←
SP – 2
POP
PSW
1
4
PSW
←
(SP), SP
←
SP + 1
R
R
R
rp
1
6
rp
H
←
(SP + 1), rp
L
←
(SP), SP
←
SP + 2
MOVW
SP,AX
2
8
SP
←
AX
AX,SP
2
6
AX
←
SP
BR
!addr16
3
6
PC
←
addr16
$addr16
2
6
PC
←
PC + 2 + jdisp8
AX
1
6
PC
H
←
A, PC
L
←
X
BC
$addr16
2
6
PC
←
PC + 2 + jdisp8 if CY = 1
BNC
$addr16
2
6
PC
←
PC + 2 + jdisp8 if CY = 0
BZ
$addr16
2
6
PC
←
PC + 2 + jdisp8 if Z = 1
BNZ
$addr16
2
6
PC
←
PC + 2 + jdisp8 if Z = 0
BT
saddr.bit, $addr16
4
10
PC
←
PC + 4 + jdisp8 if (saddr.bit) = 1
sfr.bit, $addr16
4
10
PC
←
PC + 4 + jdisp8 if sfr.bit = 1
A.bit, $addr16
3
8
PC
←
PC + 3 + jdisp8 if A.bit = 1
PSW.bit, $addr16
4
10
PC
←
PC + 4 + jdisp8 if PSW.bit = 1
BF
saddr.bit, $addr16
4
10
PC
←
PC + 4 + jdisp8 if (saddr.bit) = 0
sfr.bit, $addr16
4
10
PC
←
PC + 4 + jdisp8 if sfr.bit = 0
A.bit, $addr16
3
8
PC
←
PC + 3 + jdisp8 if A.bit = 0
PSW.bit, $addr16
4
10
PC
←
PC + 4 + jdisp8 if PSW.bit = 0
DBNZ
B, $addr16
2
6
B
←
B – 1, then PC
←
PC + 2 + jdisp8 if B
≠
0
C, $addr16
2
6
C
←
C – 1, then PC
←
PC + 2 + jdisp8 if C
≠
0
saddr, $addr16
3
8
(saddr)
←
(saddr) – 1, then
PC
←
PC + 3 + jdisp8 if (saddr)
≠
0
NOP
1
2
No Operation
EI
3
6
IE
←
1 (Enable Interrupt)
DI
3
6
IE
←
0 (Disable Interrupt)
HALT
1
2
Set HALT Mode
STOP
1
2
Set STOP Mode
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 ...