How to reference _eeprom in code
Posted: Thu Jan 27, 2011 5:44 pm
Hi!
To make a long story short, I am attempting to define a variable or constant which will be populated with the _eeprom value from the SystemTypes module which I can then use as a limiter for a mildly open-ended eeprom reading routine.
Thus far, I've discovered a few ways in which this does not work:
I am running out of ways which I might use to accomplish this. Any help appreciated. Thanx in advance.
To make a long story short, I am attempting to define a variable or constant which will be populated with the _eeprom value from the SystemTypes module which I can then use as a limiter for a mildly open-ended eeprom reading routine.
Thus far, I've discovered a few ways in which this does not work:
Code: Select all
{example of not working stuff}
'1
Const x = _eeprom 'nope
'2
#define Y = _eeprom
const x = Y 'nope
'3
dim b as byte
b = _eeprom 'nope
'4
#define Y = _eeprom 'works
dim b as byte
b = Y 'nope