Mosaic
Well-Known Member
Hi guys,
Here's the deal, I am allocating a memory block in BANK 2 and i'd like to do some assembler assignments like:
Ddata Equ 110h
and in code be able to use that reference like.
movlw Ddata-1
All's good once the absolute GPR address is UNDER a byte sized FF, anything more like 0110h and the asssmbler chokes on the
movlw Ddata-1 instruction, cuz it's > a byte.
How to approach this without using hard coded addresses? Banksel Ddata also will prob have assembler failures.
thx
Here's the deal, I am allocating a memory block in BANK 2 and i'd like to do some assembler assignments like:
Ddata Equ 110h
and in code be able to use that reference like.
movlw Ddata-1
All's good once the absolute GPR address is UNDER a byte sized FF, anything more like 0110h and the asssmbler chokes on the
movlw Ddata-1 instruction, cuz it's > a byte.
How to approach this without using hard coded addresses? Banksel Ddata also will prob have assembler failures.
thx
Last edited: