Yeah I figured.
It makes sense then to do it at runtime.
I just wondered what the errors were, since that might help suggest a clever way around it. Perhaps thats just wishful thinking.
Might there be a way to do this using a link script? Just a thought. For example could we get the link script to take the symbol isr1, and say define:
isr1h = (isr1 & 0xFFFF);
isr1l = (isr1 >> 16);
then in the assembly file:
Dw isr1h
...
dw isr1l
Just a guess, I would take a look at ld's manual, but I have some things to do. I might take a look later.
This might just be wishful thinking. ld supports these operations I think, but I still don't know if what has been said will work.
There is probably a simpler way.
Best wishes,
Richard
EDIT: Assuming you are using ld
