|
PD64A_15 Datasheet, PDF (45/66 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCONTROLLERS FOR INFRARED REMOTE CONTROL TRANSMISSION | |||
|
◁ |
µPD64A, 65
9.8 Subroutine Instructions
The program memory consists of pages in steps of 1K (000H to 3FFH). However, as the assembler automatically
performs page optimization, it is unnecessary to designate pages. The pages allowed for each product are as
follows.
µPD64A (ROM: 1K steps): Page 0
µPD65 (ROM: 2K steps): Pages 0, 1
µPD6P5 (PROM: 2K steps): Pages 0, 1
CALL addr
<1> Instruction code: 0 0 1 1 0 1 0 0 1 0
page 0 0 1 0 0 0 1 0 0 0 1 , page 1 0 1 0 0 1 1 0 0 0 1
<2> Cycle count:
a9 a7 a6 a5 a4 a8 a3 a2 a1 a0
2
<3> Function:
SP â SP + 1
ASR â PC
PC â addr
The stack pointer value is incremented (+1) and the program counter value is saved to the address stack
register. The address specified with the operand addr (a9 to a0) is then entered in the program counter.
If a carry is generated when the stack pointer value is incremented (+1), an internal reset takes effect.
RET
<1> Instruction code: 0 1 0 0 0 1 0 0 1 0
<2> Cycle count:
1
<3> Function:
PC â ASR
SP â SP â 1
The value saved in the address stack register is restored to the program counter. The stack pointer
is then decremented (â1).
If a borrow is generated when the stack pointer value is decremented (â1), an internal reset takes effect.
Data Sheet U14380EJ3V0DS00
43
|
▷ |