How to do token pasting in MPASM?
Ned Konz email (remove spam text)
On Thursday 20 February 2003 07:12 pm, Dwayne Reid wrote:
> At 12:30 PM 2/20/03 -0800, Ned Konz wrote:
> >Say I want to make a MPASM macro that will be invoked as:
> > MyMacro abc,xyz
> >and will generate the following code:
> >abcxyz equ 123
> >That is, it pastes its two arguments together to make a label. Is
> > this possible in MPASM? How about:
> This may not help, but will #define work for you? I recall that I
> tried in vain to make a macro do something out of the ordinary but
> was able to get #define to do what I wanted. Don't recall what it
> was, though.
No, I couldn't find a way to make #define work.
GPG key ID: BEEA7EFE
http://www.piclist.com hint: To leave the PICList
In reply to: <email@example.com>
See also: www.piclist.com/techref/microchip/languages.htm?key=asm
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the