11.3.5 Separation operators

[V1.01 only]

When a separation operator is applied to a relocatable term, though only the parameters enclosed in parentheses ( ) should be subject to operation under normal conditions, the value (including a symbol) following the parentheses ( ) will also be included in the operation target.

The relevant separation operators are as follows:

-

HIGH, LOW, HIGHW, LOWW, MIRHW, MIRLW, SMRLW

Example

_L:
        mov A, !HIGH(_L) + 0x44         ; Interpreted as "!HIGH(_L+0x44)"

[V1.02 or later]

When a nested separation operator is applied to a relocatable term and addition and subtraction between the separation operator and constant are written, though only the parameters enclosed in parentheses ( ) should be subject to operation under normal conditions, operation will be performed with the constant in parentheses ( ) written after the parentheses ( ). The relevant separation operators are as follows:

-

HIGH,LOW,HIGHW,LOWW,MIRHW,MIRLW,SMRLW

Example

_L:
        mov A, !HIGH(LOWW(_L+0x44)+0x55)  ; Interpreted as "!HIGH(LOWW(_L+0x44)+0x55"