Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

movlw addr for FSR use

Status
Not open for further replies.

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
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top