English
Language : 

4501_M Datasheet, PDF (76/212 Pages) Renesas Technology Corp – 4-BIT CISC SINGLE-CHIP MICROCOMPUTER 4500 SERIES
4501 Group
HARDWARE
INSTRUCTIONS
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
BM a (Branch and Mark to address a in page 2)
Instruction
code
D9
D0
Number of Number of Flag CY
0
1
0
a6 a5 a4 a3 a2 a1 a0 1
2
a
a
16
words
1
cycles
1
–
Skip condition
–
Operation:
(SP) ← (SP) + 1
(SK(SP)) ← (PC)
(PCH) ← 2
(PCL) ← a6–a0
Grouping:
Description:
Note:
Subroutine call operation
Call the subroutine in page 2 : Calls the sub-
routine at address a in page 2.
Subroutine extending from page 2 to another
page can also be called with the BM instruc-
tion when it starts on page 2.
Be careful not to over the stack because the
maximum level of subroutine nesting is 8.
BML p, a (Branch and Mark Long to address a in page p)
Instruction
code
D9
D0
Number of Number of Flag CY
0
0
1
1
0
p4 p3 p2 p1 p0
2
0
C
+p
p
16
words
2
cycles
2
–
Skip condition
–
1 0 0 a6 a5 a4 a3 a2 a1 a0 2 2 a a 16 Grouping: Subroutine call operation
Operation:
(SP) ← (SP) + 1
(SK(SP)) ← (PC)
(PCH) ← p
(PCL) ← a6–a0
Description:
Note:
Call the subroutine : Calls the subroutine at
address a in page p.
p is 0 to 15 for M34501M2 and p is 0 to 31
for M34501M4/E4.
Be careful not to over the stack because the
maximum level of subroutine nesting is 8.
BMLA p (Branch and Mark Long to address (D) + (A) in page p)
Instruction
code
D9
D0
Number of Number of Flag CY
0000110000
030
words
cycles
2
16
2
2
–
Skip condition
–
Operation:
1 0 0 p4 0 0 p3 p2 p1 p0 2 2 p p 16 Grouping: Subroutine call operation
(SP) ← (SP) + 1
(SK(SP)) ← (PC)
(PCH) ← p
(PCL) ← (DR2–DR0, A3–A0)
Description:
Note:
Call the subroutine : Calls the subroutine at
address (DR2 DR1 DR0 A3 A2 A1 A0)2 speci-
fied by registers D and A in page p.
p is 0 to 15 for M34501M2 and p is 0 to 31
for M34501M4/E4.
Be careful not to over the stack because the
maximum level of subroutine nesting is 8.
CLD (CLear port D)
Instruction
code
D9
D0
Number of Number of Flag CY
0000010001
011
words
cycles
2
16
1
1
–
Skip condition
–
Operation: (D) ← 1
Grouping: Input/Output operation
Description: Sets (1) to port D.
Rev.2.01 Feb 07, 2005
REJ09B0192-0201
1-64