DM-COP8/20D National Semiconductor, DM-COP8/20D Datasheet - Page 124

no-image

DM-COP8/20D

Manufacturer Part Number
DM-COP8/20D
Description
CABLE FOR DEBUG MODULE 20-DIP
Manufacturer
National Semiconductor
Datasheet

Specifications of DM-COP8/20D

Accessory Type
20-DIP Target Cable
For Use With/related Products
MetaLink Debug Module
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
*DM-COP8/20D
Syntax:
Description:
Operation:
2-86
JSRL ADDR
Instruction Addressing Mode
COP8SAx7 MICROCONTROLLER
JSRL ADDR
The JSRL instruction allows the subroutine to be located anywhere in
the 32-Kbyte program memory space. The instruction pushes the return
address onto the software stack in data memory and then jumps to the
subroutine address.
The contents of PCL (Lower 8 bits of PC) are transferred to the data
memory location referenced by SP (Stack Pointer). SP is then decre-
mented, followed by the contents of PCU (Upper 7 bits of PC) being
transferred to the new data memory location referenced by SP. The re-
turn address is now saved on the software stack in data memory RAM.
Then SP is again decremented to set up the software stack reference for
the next subroutine.
Next, the values found in the second and third bytes of the instruction
are transferred to PCU and PCL respectively. The program then jumps
to the program memory location accessed by PC.
[SP] <- PCL
[SP - 1] <- PCU
[SP - 2]: SET UP FOR NEXT STACK REFERENCE
PC14-8 <- HIADDR (SECOND BYTE OF INSTRUCTION)
PC7-0 <- LOADDR (THIRD BYTE OF INSTRUCTION)
Absolute
Instruction
Cycles
5
Bytes
3
Hex Op Code
AD/HIADDR/
LOADDR

Related parts for DM-COP8/20D