English
Language : 

4518 Datasheet, PDF (102/160 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4518 Group
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
RTS (ReTurn from subroutine and Skip)
Instruction
code
D9
D0
Number of Number of Flag CY Skip condition
0 0 0 1 0 0 0 1 0 1 2 0 4 5 16
words
1
cycles
2
–
Skip at uncondition
Operation:
(PC) ← (SK(SP))
(SP) ← (SP) – 1
Grouping: Return operation
Description: Returns from subroutine to the routine
called the subroutine, and skips the next in-
struction at uncondition.
SB j (Set Bit)
Instruction
code
D9
D0
Number of Number of Flag CY
00010111j
j
20
5
C
+j 16
words
1
cycles
1
–
Skip condition
–
Operation:
(Mj(DP)) ← 1
j = 0 to 3
Grouping: Bit operation
Description: Sets (1) the contents of bit j (bit specified by
the value j in the immediate field) of M(DP).
SC (Set Carry flag)
Instruction
code
D9
D0
Number of Number of Flag CY
0000000111
007
words
cycles
2
16
1
1
1
Skip condition
–
Operation: (CY) ← 1
Grouping: Arithmetic operation
Description: Sets (1) to carry flag CY.
SD (Set port D specified by register Y)
Instruction
code
D9
D0
Number of Number of Flag CY
0000010101
015
words
cycles
2
16
1
1
–
Skip condition
–
Operation:
(D(Y)) ← 1
(Y) = 0 to 7
Grouping: Input/Output operation
Description: Sets (1) to a bit of port D specified by regis-
ter Y.
Rev.3.01 2005.06.15 page 102 of 157
REJ03B0008-0301