PIC16CXX Instruction Set


CALL


Syntax : CALL k

Description : Subroutine call. First, return address (PC+1) is pushed into the stack.
              The eleven bit value is loaded into PC bits <10:0>. The upper bits of 
              the PC are loaded from PCLATH <4:3>. CALL is a two cycle instruction.

Function : PC+1 → TOS; k → PC<10:0>; PCLATH<4:3> → PC<12:11>.

Hex code : 2kkk

Bit field:
10 0kkk kkkk kkkk

Words : 1

Cycles : 2

Affected flags : None

See also :   RETLW,   RETURN
Previous    Upper level    Next