English
Language : 

4502 Datasheet, PDF (67/116 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4502 Group
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
IAP3 (Input Accumulator from port P3)
Instruction
code
D9
D0
Number of Number of Flag CY
words
cycles
1 0 0 1 1 0 0 0 1 1 2 2 6 3 16
1
1
–
Skip condition
–
Operation:
(A1, A0) ← (P31, P30)
(A3, A2) ← 0
Grouping: Input/Output operation
Description: Transfers the input of port P3 to the low-or-
der 2 bits (A1, A0) of register A.
Note:
After this instruction is executed, sets “0” to
the high-order 2 bits (A3, A2) of register A.
INY (INcrement register Y)
Instruction
code
D9
D0
Number of Number of Flag CY
0000010011
013
words
cycles
2
16
1
1
–
Skip condition
(Y) = 0
Operation: (Y) ← (Y) + 1
Grouping: RAM addresses
Description: Adds 1 to the contents of register Y. As a re-
sult of addition, when the contents of
register Y is 0, the next instruction is
skipped. When the contents of register Y is
not 0, the next instruction is executed.
LA n (Load n in Accumulator)
Instruction
code
D9
D0
Number of Number of Flag CY
000111nnnn
07n
words
cycles
2
16
1
1
–
Skip condition
Continuous
description
Operation: (A) ← n
Grouping: Arithmetic operation
n = 0 to 15
Description: Loads the value n in the immediate field to
register A.
When the LA instructions are continuously
coded and executed, only the first LA in-
struction is executed and other LA
instructions coded continuously are
skipped.
LXY x, y (Load register X and Y with x and y)
Instruction
code
D9
D0
Number of Number of Flag CY
1 1 x3 x2 x1 x0 y3 y2 y1 y0 3 x y
words
cycles
2
16
1
1
–
Skip condition
Continuous
description
Operation:
(X) ← x x = 0 to 15
(Y) ← y y = 0 to 15
Grouping: RAM addresses
Description: Loads the value x in the immediate field to
register X, and the value y in the immediate
field to register Y. When the LXY instruc-
tions are continuously coded and executed,
only the first LXY instruction is executed
and other LXY instructions coded continu-
ously are skipped.
Rev.3.01 2005.02.02 page 67 of 112
REJ03B0105-0301