Shop OBEX P1 Docs P2 Docs Learn Events
downloading code off a stamp — Parallax Forums

downloading code off a stamp

ArchiverArchiver Posts: 46,084
edited 2004-03-13 13:53 in General Discussion
I programmed my stamp at home last night, and I don't have that
source code file with me at work. Is there any way that I can
download the code off the stamp and view it on my PC?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-01 22:43
    People ask this about every 3 months.
    The simple answer is No.

    The more complicated answer is that
    you would need a decompiler for that,
    which doesn't exist. You would need a
    way to get the 'code' out of the EEPROM
    on the BS2, and the circuitry to do that
    without the PIC is not there -- and if
    you re-program the BS2 so it has a
    subroutine to dump its eeprom, you'll wipe
    out your code anyway.

    And -- theoretically, it is possible to
    de-solder the EEPROM, solder it down
    somewhere else, read the program bytes
    out, and decompile that into source. But,
    it wouldn't be simple and it wouldn't be
    cheap. The need for this is also very
    narrow, as really expensive trade-secret
    PBasic algorithms are not very common.

    So, the more complicated answer is yes,
    you could do this, but it wouldn't be
    worth it, so no.

    --- In basicstamps@yahoogroups.com, "andy_watson5" <andywatson@m...>
    wrote:
    > I programmed my stamp at home last night, and I don't have that
    > source code file with me at work. Is there any way that I can
    > download the code off the stamp and view it on my PC?
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-01 23:07
    Nope. What's on your BASIC Stamp is compiled tokens -- the source only
    exists on your PC.

    -- Jon Williams
    -- Parallax


    Original Message
    From: andy_watson5 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=f1fEKfz9OtDBTMRB38UtgPFDw085y8lTVzycEwy8hzNbVpE5yX8bzuCy4suIL-Lk0Q94CFom09qz]andywatson@m...[/url
    Sent: Monday, March 01, 2004 3:25 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] downloading code off a stamp


    I programmed my stamp at home last night, and I don't have that
    source code file with me at work. Is there any way that I can
    download the code off the stamp and view it on my PC?
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 13:53
    Yes, we know the code on the stamp is tokenized, and one would not
    be able to get it and know what variable names are, but to those of
    us who have hacked at .exe files to reverse engineer into .asm, we
    are used to adding labels to it. It would seem that there could be a
    get_tokenized_from_stamp and at least generate a program flow. Sure,
    there would be work involved, but that stamp super carrier board
    over there with 3 adc amps, pots and a Scott Edwards display on it
    would be worth something since while i was away my office with print-
    outs was ransacked and the computer crashed. I have nothing but the
    hardware and some hint at this project would be worthwhile. At least
    It is relatively easy to draw out the breadboard, but to have to re-
    write from scratch is a pain.


    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Nope. What's on your BASIC Stamp is compiled tokens -- the source
    only
    > exists on your PC.
    >
    > -- Jon Williams
    > -- Parallax
    >
    >
    >
    Original Message
    > From: andy_watson5 [noparse][[/noparse]mailto:andywatson@m...]
    > Sent: Monday, March 01, 2004 3:25 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] downloading code off a stamp
    >
    >
    > I programmed my stamp at home last night, and I don't have that
    > source code file with me at work. Is there any way that I can
    > download the code off the stamp and view it on my PC?
Sign In or Register to comment.