A function that returns an integer can participate in an arithmetic expression. However, there are limitations, such as an expression of the form
Intfunction() opvalue
where:
Is either plus (+) or minus (-).
Is either an integer or a function that returns the expected result.
If the value of the special register, X, is 10, then the following function returns 12:
SREG(X)+2
iWay Software |