Hello,
The following seems to give the intended result.
#pragma NO_STRING_CONSTR
#define __SetSP( x ) __asm LDHX #x; __asm TXS
Without the pragma, the presence of the '#' character within the inline assembler instruction confuses the C preprocessor when it expands the macro.
Regards,
Mac
Message Edited by bigmac on
2008-05-28 02:54 AM