11.14.2 __TARGET_DIVIDE_CYCLES __TARGET_DIVIDE_CYCLES16 __TARGET_DIVIDE_CYCLES32

Description:

__TARGET_DIVIDE_CYCLES is 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.

On dsPIC33A family devices, two versions of this symbol are defined: one for 16-bit result instructions, and one for 32-bit result instructions.

Example:

repeat #__TARGET_DIVIDE_CYCLES
div.s w2,w4

Remarks:

The 16-Bit MCU and DSC Programmer’s Reference Manual (DS-70000157), DIV.S instruction behavior section, explains how many cycles the div instruction takes, including the repeat, in its instruction description.

For dsPIC33A devices, see the device data sheet or dsPIC33A Programmer's Reference Manual (DS-70005540).

Default Behavior:

The appropriate literal value is assigned based on device instruction set architecture.