Professional Documents
Culture Documents
Macro Example
Macro Example
IF NUL 'CHAR' EXITM ELSEIF '~' NE 'CHAR' MOV A,#'CHAR' LCALL lcd_data ELSE MOV A,#0C0H LCALL COMMAND ENDIF ENDM ENDM
/*set pos is a macro which set the lcd cursor to the given location*/ SET_POS MACRO POST MOV A,#POST ACALL COMMAND ENDM