|
7643_06 Datasheet, PDF (409/424 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
7643 Group
APPENDIX
3.7 Machine instructions
Symbol
Function
BPL
(Note 5)
(Note 8)
N = 0?
BRA
PC â PC ± offset
(Note 6)
BRK
BVC
(Note 5)
Bâ1
(PC) â (PC) + 2
M(S) â PCH
SâSâ1
M(S) â PCL
SâSâ1
M(S) â PS
SâSâ1
Iâ 1
PCL â ADL
PCH â ADH
V = 0?
BVS
V = 1?
(Note 5)
CLB
Ai or Mi â 0
CLC
Câ0
CLD
Dâ0
CLI
Iâ0
CLT
Tâ0
CLV
Vâ0
CMP
(Note 3)
When T = 0
AâM
When T = 1
M(X) â M
COM
CPX
M
â
__
M
XâM
CPY
YâM
DEC
A â A â 1 or
MâMâ1
Addressing mode
Details
IMP
IMM
A
BIT, A
ZP
BIT, ZP
OP n # OP n # OP n # OP n # OP n # OP n #
This instruction takes a branch to the ap-
pointed address if N is 0. The branch address
is specified by a relative address. If N is 1, the
next instruction is executed.
This instruction branches to the appointed ad-
dress. The branch address is specified by a
relative address.
When the BRK instruction is executed, the 00 7 1
CPU pushes the current PC contents onto the
stack. The BADRS designated in the interrupt
vector table is stored into the PC.
This instruction takes a branch to the ap-
pointed address if V is 0. The branch address
is specified by a relative address. If V is 1, the
next instruction is executed.
This instruction takes a branch to the ap-
pointed address when V is 1. The branch
address is specified by a relative address.
When V is 0, the next instruction is executed.
This instruction clears the designated bit i of A
or M.
This instruction clears C.
18 1 1
1+B 1 1
20i
1+F 5 2
20i
This instruction clears D.
D8 1 1
This instruction clears I.
58 2 1
This instruction clears T.
12 1 1
This instruction clears V.
B8 1 1
When T = 0, this instruction subtracts the con-
tents of M from the contents of A. The result is
not stored and the contents of A or M are not
modified.
When T = 1, the CMP subtracts the contents
of M from the contents of M(X). The result is
not stored and the contents of X, M, and A are
not modified.
M(X) represents the contents of memory
where is indicated by X.
This instruction takes the oneâs complement of
the contents of M and stores the result in M.
This instruction subtracts the contents of M
from the contents of X. The result is not stored
and the contents of X and M are not modified.
This instruction subtracts the contents of M
from the contents of Y. The result is not stored
and the contents of Y and M are not modified.
This instruction subtracts 1 from the contents
of A or M.
C9 2 2
C5 3 2
E0 2 2
C0 2 2
1A 1 1
44 5 2
E4 3 2
C4 3 2
C6 5 2
Rev.2.00 Aug 28, 2006 page 86 of 98
REJ09B0133-0200
|
▷ |