On 30/04/14 18:03, Dave Hylands wrote:
The assembler uses word addresses, so a 16-bit entry can refer to 128K
Hi Dave, thanks for replying.
AFAIK, in assembler, as it refers to addresses in bytes, but the avr hardware uses word addresses, there is the pm() and pm_xxx macros that do the /2 for you when loading a register with relocatable addresses, so that the relocations still work. Yes, for a 128 part it will be ok, but I need to be sure it will just work for a 256 part, and if I need to do magic now, rather than later, or there is a proper way of dealing with this. Cheers David The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error, please notify the sender immediately and delete the message. Unless you are an addressee (or authorized to receive for an addressee), you may not use, copy or disclose to anyone this message or any information contained in this message. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited. _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list