Shop OBEX P1 Docs P2 Docs Learn Events
read program — Parallax Forums

read program

oldhippyoldhippy Posts: 36
edited 2014-12-03 10:38 in BASIC Stamp
Is there any way to read the program in a BS2

Comments

  • PublisonPublison Posts: 12,366
    edited 2014-11-28 06:52
    No, not really. The program from the editor doesn't exist inside the BS2 anyway. The Stamp Editor compiles (translates / transforms) it into a very compressed interpretive code. Variable names and statements disappear and are replaced with memory locations. Things like IF THEN statements become conditional jumps, etc.
  • ercoerco Posts: 20,257
    edited 2014-11-28 19:45
    Per Jim, the program is stored in tokens and bears no resemblance to the PBASIC program. Originally, the inability to read or extract the program in EEPROM was touted as a security feature, that no one could "steal" your code out of a BS2. There may have been some commercial Stamp applications where this was desirable, many moons ago. Fast forward 20 years to today, where the Stamp is 99.9999999999999999999% educational, and that feature is less appealing, even downright limiting. It sure would be nice if there was a way to get the program out. Firmware upgrade? Editor change? Dunno. Maybe you could optionally lock it up for a commercial app.
  • davejamesdavejames Posts: 4,047
    edited 2014-11-29 09:44
    oldhippy - I found this tidbit of information concerning the Stamp1:

    http://www.mcmanis.com/chuck/robotics/stamp-decode.html


    Maybe useful for your endeavors?
  • oldhippyoldhippy Posts: 36
    edited 2014-12-03 10:38
    thanks for that information maby later
Sign In or Register to comment.