PIC17CXX Instruction Set


LCALL


Syntax : LCALL k

Description : Subroutine call to anywhere within 64K. First, return address (PC+1) is pushed 
              into the stack. The lower 8 bits of the dest address are embedded in the instruction.
              The upper 8 bits of PC is loaded from PC high holding latch. LCALL is a two cycle instruction.

Function : PC+1 → TOS; k → PCL;   (PCLATH) → PCH.

Hex code : B7kk

Bit field:
1011 0111 kkkk kkkk

Words : 1

Cycles : 2

Affected flags : None

See also :   RETLW,   RETURN
Previous    Upper level    Next