David Barnett - 2008-05-14

Logged In: YES
user_id=896846
Originator: YES

Constants defined with the EQU and ORG directives have the same issue. Under MPASM, they will be treated as if they were defined from the beginning of the file. gpasm will only consider them defined below the line they are defined on:

#ifdef XYZ
  nop     ; will be evaluated only under MPASM
#endif
XYZ EQU 1
#ifdef XYZ
  nop     ; will be evaluated under either MPASM or gpasm
#endif
 
Last edit: Borut Ražem 2013-01-03