In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Peter Van der Zee wrote: OK Guys, I must be dense or something, because I just can't get it to work no matter what I do. Using the pasting operator, ....setting labels in the first column or second column.... evaluatins variables, assigning values.... just nothing . In its simplest form, all I'm trying to do is: If an instruction statement starting with a particular label has not yet been entered into my source code (that is a proper use of "IFNDEF" of the lable as I understand it), then create the line, otherwise do nothing and exit the macro. Like: Assign macro Name ;create a macro ifdef I??Name ;test for the modified parameter passed already exists exitm ;if so then bail out else ;otherwise I??Name jmp OtherName ;create this label from the parameter passed endm ;done And when I invoke the macro once, this works OK. It's when I invoke it subsequent times that I get a "redefine symbol" message. What I need the macro to realize it has already issued the statement in the first instance, and from that point on it should not attempt to issu it again. This way I could create a very nice jump table sort of automatically. I just can't get it to be happy after the first invocation...... help?? Cheers, Peter (pjv) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=244787#m245708 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)