EVAL Function
The EVAL MPL function returns the hexadecimal representation of the specified expression. The syntax for the EVAL function is:
%EVAL (expression)
The expression must be a legal expression. If it uses any macro identifiers, they must have been previously-defined.
Source Text
%SET (CNT, 10) %' define variable CNT'
%SET (OFS, 20) %' define variable OFS'
MOV R1,#%EVAL (%CNT+1)
MOV R2,#%EVAL (14+15*200)
MOV R3,#%EVAL (-(%CNT + %OFS - 1))
MOV R4,#%EVAL (%OFS LE %CNT)
MOV R5,#%EVAL (%OFS GE %CNT)
Output Text
MOV R1,#0BH
MOV R2,#0BC6H
MOV R3,#-29
MOV R4,#00H
MOV R5,#01H