Searching \ for '[PIC]: MPLAB ASM if statement help' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: 'MPLAB ASM if statement help'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: MPLAB ASM if statement help'
2001\02\05@173951 by Mike Mansheim

Given the below, I would like to put the file if euro is 0
or put the file if euro is 1 or any other value.

The problem is the thing puts in with 1 but tries to
put both files if not zero and I get a dup label message.

   ifdef   EURO = 0

Bob already replied with the correct usage  (if EURO == 0).
Just thought I'd mention that "ifdef" tests whether a symbol
has been defined at all (e.g. with #define or equ), and doesn't
care about any value that may have been assigned.  So ifdef
could be used - you would just have to comment and uncomment
the definition of EURO.
By the way, wouldn't mpasm just kick "EURO = 0" used with ifdef
as an illegal label?

-- hint: To leave the PICList

More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...