#include <in430.h>
unsigned long _DNEG32(unsigned long x);
_DNEG32 negates (computes the 9's complement of) x using decimal arithmetic. x must be a binary coded decimal number and the result is a binary coded decimal number.
_DNEG32 is an intrinsic function and produces inline code.
_DNEG32 can be used on any MSP430 device.