View Full Version : DATA and EEPROM Commands
websmith
- 1st December 2006, 11:09
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?
Melanie
- 1st December 2006, 11:44
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.
DragonBall_6
- 2nd December 2006, 06:06
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????
Melanie
- 2nd December 2006, 08:40
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
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.