Hi
On reading the manual I cannot for the life of me see the difference between DATA and EEPROM Commands, other than DATA seems to need an "@" Is there a difference?
Hi
On reading the manual I cannot for the life of me see the difference between DATA and EEPROM Commands, other than DATA seems to need an "@" Is there a difference?
I think some commands are there to maintain a degree of backward compatability with Basic Stamp, but not having arrived here from that direction I'm sure others with more extensive Stamp experience may confirm or deny my accusation.
Hi All
***a var word
***c var byte
***EEPROM 0,[$0a07,$0b09,$0c0a]
***Read 0, a.highbyte
***Read 1, a.lowbyte
***c= a.highbyte + a.highbyte
Above code wil return
a.highbyte=&0a
a.lowbyte=$07
c=17 (decimal)
Am I right????
See answer on your other thread...
But Also NO!
If a.highbyte contains $0A (eg 10 Decimal) then...
c=a.HIGHbyte+a.HIGHbyte will contain $14 (eg 20 Decimal)
that because you're adding 10 + 10 = 20
Bookmarks