English
Language : 

DR805X Datasheet, PDF (46/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.22. LCALL
- 46 -
Instruction: LCALL addr16
Function: Long call
Description:
LCALL calls a subroutine located 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 64 Kbyte program memory address
space. No flags are affected.
Operation:
(PC) ← (PC) + 3
(SP) ← (SP) + 1
((SP)) ← (PC7-0)
(SP) ← (SP) + 1
((SP)) ← (PC15-8)
(PC) ← addr15-0
Bytes:
3
Cycles:
6
Encoding:
00010010
address 15..8
address 7..0
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.