Name:
#endmacro (#endm)
Syntax:

#MACRO label(param1, param2...)

(code goes here)

#ENDMACRO

 

 

Description:

Terminates a #macro definition.

Applies To:
All
See Also:
Related Create:
    Share:
    Print:

    Macro Expansion

    A simple macro to display a number on line one of an LCD

    Code Example:
    symbol lcdpin = B.7
    
    #macro lcdout( number )
      serout lcdpin, n2400, ( 254, 128, #number, "    " )
    #endmacro
    
    main:
    	lcdout( w0 )
    	w0 = w0 + 1
    	pause 1000
    	goto main
    Copy Code Submit an Example

    Submit Your Own Code!

    You must be logged in to submit code examples. Login now.

    Comments

    • Login to leave a comment.