Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

 
5.3 .if .else .endif
With .if .else and .endif mas provide conditional assembly. Syntax is following:
  .if expression

   ; come code

  .endif
or:
  .if expression

   ; some code

  .else

   ; some code

  .endif
In both case we must have on mind that mas parse all on line bases, so after .else and .endif must be new-line character. It can be used for checking multiple including (like in C)
  ; names.inc

  

  .if .isndef __NAMES_INC

  .define __NAMES_INC

  

   ; all declarations

   

  .endif
[PREV][INDEX][NEXT]