gc80c520a CORERIVER Semiconductor, gc80c520a Datasheet - Page 125

no-image

gc80c520a

Manufacturer Part Number
gc80c520a
Description
Midas1.0 Family Mask Rom/eprom/romless 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
LCALL
Description:
Operation:
Encoding:
Function:
Example:
MiDAS1.0 Family
Cycles:
addr16
Bytes:
Long call
LCALL calls a subroutine Iocated at the indicated address. The instruction adds
three to the program counter to generate the address of the next instruction and
then pushes the 16-bit result onto the stack (low byte first), incrementing the
Stack Pointer by two. The high-order and low-order bytes of the PC are then
loaded, respectively, with the second and third bytes of the LCALL instruction.
Program execution continues with the instruction at this address. The
subroutine may therefore begin anywhere in the full 64Kbyte program memory
address space. No flags are affected.
Initially the Stack Pointer equals 07h. The label “SUBRTN” is assigned to
program memory location 1234h. After executing the instruction,
LCALL SUBRTN
at location 0123h, the Stack Pointer will contain 09h, internal RAM Iocations
08h and 09h will contain 26h and 01h, and the PC will contain 1234h.
3
4
LCALL
(PC)
(SP)
((SP))
(SP)
((SP))
(PC)
(PC)
0
0
(SP) + 1
(SP) + 1
(PC) + 3
(PC) + 3
addr
(PC )
(PC
0
15-0
7-0
15-8
1
)
0 0 1 0
Page 125 of 187
addr15 ~ addr8
addr7 ~ addr0

Related parts for gc80c520a