as: RL78-Modifiers
1
1 9.38.2 Symbolic Operand Modifiers
1 ---------------------------------
1
1 The RL78 has three modifiers that adjust the relocations used by the
1 linker:
1
1 '%lo16()'
1
1 When loading a 20-bit (or wider) address into registers, this
1 modifier selects the 16 least significant bits.
1
1 movw ax,#%lo16(_sym)
1
1 '%hi16()'
1
1 When loading a 20-bit (or wider) address into registers, this
1 modifier selects the 16 most significant bits.
1
1 movw ax,#%hi16(_sym)
1
1 '%hi8()'
1
1 When loading a 20-bit (or wider) address into registers, this
1 modifier selects the 8 bits that would go into CS or ES (i.e. bits
1 23..16).
1
1 mov es, #%hi8(_sym)
1