Program comment
Archiver
Posts: 46,084
When I put some comment text behind my program rule (starting with
an ') and I download my program into my stamp, what will be sent to
the stamp? Also the comment text?
Tim
an ') and I download my program into my stamp, what will be sent to
the stamp? Also the comment text?
Tim
Comments
In fact, the actual text of your program is not directly stored either. For
example, if you enter X=1 the Stamp doesn't get "X=1" sent to it. Instead,
it gets an intermediate code that is specially designed for small memories.
So the 1 above might take just 1 or 2 BITS and the X= turns into something
else that is more compact.
In fact, for the Stamp I, we have a free simulator that reads the hex
numbers and executes them on the PC (well, mostly) so you can debug in a
simulated environment. If you look at the input files to the simulator, they
don't look anything like your original code. See
http://www.al-williams.com/bs1emu.htm.
Regards,
Al Williams
AWC
* Add math and A/D to your Stamp
http://www.awce.com/pak12.htm
Original Message
From: ikenniemandanders [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=QuuHYUkKjyS7AYoJmIkkQNfTGdQItGsDd2uZ9lOziCcfn4m_00fAIlrQkxtQTJULLHfH_-H8tsM]tld-nv@s...[/url
Sent: Tuesday, July 13, 2004 9:30 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Program comment
When I put some comment text behind my program rule (starting with
an ') and I download my program into my stamp, what will be sent to
the stamp? Also the comment text?
Tim
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Yahoo! Groups Links
directives, but they aren't downloaded). In fact, the only text that
does get downloaded to the BASIC Stamp module is that is quotes (DEBUG,
SEROUT, etc.). Everything else is compiled into tokens (byte codes)
that are executed by the onboard interpreter.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: ikenniemandanders [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=zKcmB5XSOdFNpoqosLWzmGPBsuHG5BjnfryVh8wt3cNYTFCYGooWAt0seMAMsm8TE7zdwwwcOlZZSQ]tld-nv@s...[/url
Sent: Tuesday, July 13, 2004 9:30 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Program comment
When I put some comment text behind my program rule (starting with
an ') and I download my program into my stamp, what will be sent to
the stamp? Also the comment text?
Tim