avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Getting all 17bits of an objects address ?


From: Roland Zitzke
Subject: Re: [avr-gcc-list] Getting all 17bits of an objects address ?
Date: Tue, 26 Nov 2002 08:01:38 +0100

Sent: Monday, November 25, 2002 6:21 PM
Subject: [avr-gcc-list] Getting all 17bits of an objects address ?


getting the full 17bits
> of a array defined in program memory ?
I have exactly the same problem.
It would be handy to have a macro to store a 17 bit full pointer into a long
variable and another macro
PRG_RDB_EX which takes such a pointer and returns the FLASH byte at that
position.
This would allow users of atmega103 and 128 to use more than 64k as data
memory.
This macro would need to use the ELPM instruction and use more cyles and
therefore this should only be an option - not the general case.
/Roland


avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]