Shop OBEX P1 Docs P2 Docs Learn Events
self-modifying programs — Parallax Forums

self-modifying programs

ArchiverArchiver Posts: 46,084
edited 2001-06-17 10:50 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-06-17 05:20
    Hi Ken,

    Take a look at Note 16 in the stamp manual.
    The procedure how to do this is described there.

    Greetings peter
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-17 06:10
    Hi,
    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/
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-17 07:34
    [font=arial,helvetica]In a message dated 6/16/01 8:37:14 PM Central Daylight Time, kenzo@ureach.com
    writes:


    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?



    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]
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-17 10:50
    Hi Ken,

    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
Sign In or Register to comment.