11.12.2 __TARGET_DIVIDE_CYCLES16 __TARGET_DIVIDE_CYCLES32
Description:
__TARGET_DIVIDE_CYCLES16 (for 16-bit result instructions) and
__TARGET_DIVIDE_CYCLES32 (for 32-bit result instructions) are used
in the repeat/divide instruction sequence and resolved based on the selected device's
Instruction Set Architecture. Using this symbol in assembly code instead of hard-coding
a number helps in porting of code from one device to another.
Examples:
repeat #__TARGET_DIVIDE_CYCLES16
divs.w w2,w4
repeat #__TARGET_DIVIDE_CYCLES32
divs.l w2,w4
Remarks:
The dsPIC33A/PIC32A Programmer’s Reference Manual (DS-70005540), DIV.S instruction behavior section, explains how many cycles the div instruction takes, including the repeat, in its instruction description.
Default Behavior:
The appropriate literal value is assigned based on device instruction set architecture.
