self-modifying programs
Archiver
Posts: 46,084
Hi,
Anyone know if it's possible to "poke" into the basic token area of
a running program? If possible, I'd like to write a program for the
stamp that is self-modifying. I've done this before in other basics,
should be possible in PBasic?
Thanks!
Ken
Anyone know if it's possible to "poke" into the basic token area of
a running program? If possible, I'd like to write a program for the
stamp that is self-modifying. I've done this before in other basics,
should be possible in PBasic?
Thanks!
Ken
Comments
Take a look at Note 16 in the stamp manual.
The procedure how to do this is described there.
Greetings peter
Where do they hide the "notes" in the stamp manual. Dern if I
can't find a single note that has a number associated to
it. [noparse]:([/noparse]
Kenzo
with enough thrust, pigs fly just fine.
---- On Sun, 17 Jun 2001, Peter Verkaik
(peterverkaik@b...) wrote:
> Hi Ken,
>
> Take a look at Note 16 in the stamp manual.
> The procedure how to do this is described there.
>
> Greetings peter
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed with. Text
in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
writes:
a running program? ·If possible, I'd like to write a program for the
stamp that is self-modifying. ·I've done this before in other basics,
should be possible in PBasic?
PBASIC uses variable-length tokens and program data so it would be very
difficult -- if not impossible -- to create a self-modifying program. ·If you
know in advance what the possibilities are, you can certainly write code
modules (subroutines) that can be called as needed. ·You can also WRITE
(poke) user data to the EEPROM that can be used to control the flow of your
program. ·By storing your control data in EEPROM, it won't be lost on a reset.
-- Jon Williams
-- Applications Engineer, Parallax
[/font]
You can find the application notes and other important
Documents at the Parallax website. Go to downloads,
Then select Basic Stamp documentation.
http://www.parallaxinc.com/html_files/downloads/download_documentation.htm
The application note you require is BASIC Stamp I Application Notes (126
pp.)
Greetings peter