Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20555

BASCOM-AVR : How to get value for EE label? : REPLY

$
0
0
[quote:4f2c67b711="albertsm"]I dont see a reason to use adr or adr2. adr2 would be used for data stored in code.[/quote:4f2c67b711] Adr2 is used to retrieve an address in flash memory and this address is written to flash memory a the very position of Adr. As far I understand the TO's intention, he wants to store text messages of his menu into eeprom and he needs to link these addresses to his menue. Your shown codes works for sure, but somehow I miss the point, how it should work within a menu similar to the sample filed under Adr. How would you comfortably link the labels for the stored text in eeprom to said menu-example? There would be a solution: The compiler knows, whether a label points to flash or eeprom, so if Adr points to an eeprom-label, the eeprom-address is written to this point in memory, if it points to a flash-label, a flash address is stored. If Adr is put within an $eeprom/$data block, the word-address is created within eeprom, otherwise in flash.

Viewing all articles
Browse latest Browse all 20555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>