Keil™, An ARM® Company

Cx51 User's Guide

MODDA Compiler Directive

Abbreviation None.
Arguments None.
Default NOMODDA
µVision Options — Target — Use On—Chip Arithmetic Accelerator.
Description 

The MODDA directive enables code generation for the additional hardware components (specifically, the arithmetic accelerator) of the Dallas Semiconductor DS80C390, DS80C400, DS5240, and compatible derivatives. This improves the performance of integer and long math operations.

When using this directive, it is important that only one thread of execution uses the arithmetic processor.

  • Use the MODDA directive to compile functions which are guaranteed to execute only in the main program or functions used by one interrupt service routine, but not both.
  • Compile all remaining functions with the NOMODDA directive.
See Also NOMODDA
Example 
C51 SAMPL390.C MODDA

#pragma modda