Do 'comments get loaded into stamp eeprom?
Clock Loop
Posts: 2,069
Do 'comments get loaded into stamp eeprom, or are they cut out when you load them into the stamp?
I tried to search the forums for this answer, and the pbasic help file and couldn't find an answer.
I would hope that they DON'T??
I tried to search the forums for this answer, and the pbasic help file and couldn't find an answer.
I would hope that they DON'T??
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Does it matter how one chooses to enter information?
For example, using HEX, BIN or DECIMAL.
SHIFTOUT Dpin, Clk, MSBFIRST, [noparse][[/noparse]8\8] <--- this example shifts out the number 8,
in this situation, in binary thats 0000 1000
Is there really any BETTER way to go? or is it just programmers desire?
By better I mean for the compiler, EEPROM?
By your previous answer, I would guess the answer is "its all the same to the compiler"
LEDs = %10100101
is easier to visualize than
LEDs = $A5
or
LEDs = 165
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Save decimal for genuine arithmatic, use bits for information related to ON/OFF status of pins or status flags in a byte, and use general binary code for things like ASCII.
If you have a good reason for each use in a particular context, they help you rather than hide problems.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
http://ascii.cl/conversion.htm
Chris I.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
http://forums.parallax.com/showthread.php?p=556244
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
' {$STAMP BS2}
' {$PBASIC 2.5}
' #DEFINE NeverDef
#IF NeverDef #THEN
DEBUG "Hello"
#ENDIF
When you comment out the '#DEFINE' above, then NeverDef is never defined, and the stuff between the #IF and the #ENDIF are 'commented out'.
I know, VB has this very nice 'comment out' button which will 'comment out' everything you've highlighted. The PBasic IDE doesn't have this.