
Originally Posted by
skimask
How do you get MPASM to recognize different parameters using DEFINE in PBP? I can't seem to get it to work right...
Several ways ... here's one.
Code:
DEFINE OptLevel BYTE
ASM
BIT = 1
BYTE = 8
WORD = 16
LONG = 32
IFDEF OptLevel
IF (OptLevel == BYTE)
; -- Byte level specified
ENDIF
IF (OptLevel == WORD)
; -- Word level specified
ENDIF
ENDIF
ENDASM
Bookmarks