PIC17CXX Instruction Set


CALL


Syntax : CALL k

Description : Subroutine call within 8K page. First, return address (PC+1) is pushed 
              into the stack. The thirteen bit value is loaded into PC bits <12:0>. 
              The upper 3 bits of the PC are loaded from PCLATH <7:5>. CALL is a 
              two cycle instruction.

Function : PC+1 → TOS; k → PC<12:0>; k<12:8> → PCLATH<4:0>; PC<15:13> → PCLATH<7:5>.

Hex code : Ekkk

Bit field:
111k kkkk kkkk kkkk

Words : 1

Cycles : 2

Affected flags : None

See also :   LCALL,   RETLW,   RETURN
Previous    Upper level    Next