FFC XAR7,22bit
6-95
FFC XAR7,22bit Fast Function Call
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
FFC XAR7,22bit 0000 0000 11CC CCCC
CCCC CCCC CCCC CCCC
X − 4
Operands XAR7 Auxiliary register XAR7
22bit 22-bit program-address (0x00 0000 to 0x3F FFFF range)
Description Fast function call. The return PC value is stored into the XAR7 register and
the 22-bit immediate destination address is loaded into the PC:
XAR7(21:0) = PC + 2;
XAR7(31:22) = 0;
PC = 22 bit;
Flags and
Modes
None
Repeat This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example ;
Fast function call of FuncA:
FFC XAR7,FuncA ; Call FuncA, return address in XAR7
.
.
FuncA: ; Function A:
.
.
LB *XAR7 ; Return: branch to address in XAR7