Cx51 User's Guide

MODA2 Compiler Directive

Abbreviation

None.

Arguments

None.

Default

NOMODA2

µVision

Options — Target — Use multiple DPTR registers.

Description

The MODA2 directive instructs the compiler to produce code for the additional hardware components (specifically, the additional data pointers) available in the Atmel 80x8252 and compatible derivatives. Using additional data pointers improves the performance of the memcpy, memmove, memcmp, strcpy, and strcmp library routines.

See Also

NOMODA2

Example
C51 SAMPLE.C MODA2

#pragma moda2