This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Literalizing the '#' character in #define

The C51 pre-processor treats the "#" character as the "Stringize" operator. How do I override this operator when desired?

For example:

#define X mov A,#10

Expands to:
mov A,10

How can I force a literal expansion of the "#" character such that the above macor expands to:
mov A,#10

Thanks.

0