Instruction Set ArchitectureIP2022 Users Manual
172
www.ubicom.com
Example:
MyRegisters = 0x048A
;define symbolic address
loadh MyRegisters
;load 0x02 to DPH
loadl MyRegisters
;load 0x45 to DPL
The first line of this example is a declaration that
the symbolic address MyRegisters is the byte
address 0x048A (word address 0x0245). The
second line loads DPH with the high 8 bits of the
word address for MyRegisters. The third line
loads DPL with the low 8 bits of the word address
for MyRegisters.