English
Language : 

4559 Datasheet, PDF (88/148 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4559 Group
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
B a (Branch to address a)
Instruc-
tion
code
D9
D0
0
1
1 a6 a5 a4 a3 a2 a1 a0 2
1
8
+a
a
16
Number of
words
1
Number of
cycles
1
Flag CY
-
Skip condition
-
Opera- (PCL) ← a6 to a0
tion:
Grouping: Branch operation
Description: Branch within a page : Branches to address a in the identi-
cal page.
Note:
Specify the branch address within the page including this
instruction.
BL p,a (Branch Long to address a in page p)
Instruc-
tion
code
D9
D0
0
0
1
1
1 p4 p3 p2 p1 p0 2
0
E
+p
p
16
Number of
words
2
Number of
cycles
2
Flag CY
-
Skip condition
-
1 0 p5 a6 a5 a4 a3 a2 a1 a0 2 2 a a 16 Grouping: Branch operation
Opera- (PCH) ← p
tion: (PCL) ← a6 to a0
Description: Branch out of a page : Branches to address a in page p.
Note:
p = 0 to 47
BLA p (Branch Long to address (D)+(A) in page p)
Instruc-
tion
code
D9
D0
0 0 0 0 0 1 0 0 0 0 2 0 1 0 16
Number of
words
2
Number of
cycles
2
Flag CY
-
Skip condition
-
1 0 p5 p4 0 0 p3 p2 p1 p0 2 2 p p 16 Grouping: Branch operation
Opera- (PCH) ← p
tion: (PCL) ← (DR2−R0, A3−A0)
Description: Branch out of a page : Branches to address (DR2 DR1 DR0
A3 A2 A1 A0)2 specified by registers D and A in page p.
Note:
p = 0 to 47
BM a (Branch and Mark to address a in page 2)
Instruc-
tion
code
D9
D0
0 1 0 a6 a5 a4 a3 a2 a1 a0 2 1 a
a 16
Number of
words
1
Number of
cycles
1
Flag CY
-
Skip condition
-
Opera-
tion:
(SP) ← (SP) + 1
(SK(SP)) ← (PC)
(PCH) ← 2
(PCL) ← a6−a0
Grouping: Subroutine call operation
Description: Call the subroutine in page 2 : Calls the subroutine at
address a in page 2.
Note:
Subroutine extending from page 2 to another page can
also be called with the BM instruction when it starts on
page 2.
Be careful not to over the stack because the maximum
level of subroutine nesting is 8.
Rev.1.04 Aug 23, 2007 Page 88 of 146
REJ03B0188-0104