Retrieving a BAS program
dazedandconfused
Posts: 4
I have a program resident in my BS2, but I cannot find the file on my PC hard drive.
Is there a way to pull the program off the BS2 and get the BS2 file back on my hard drive?
Thank you!
Is there a way to pull the program off the BS2 and get the BS2 file back on my hard drive?
Thank you!
Comments
This is where the phrase, "Save early; save often." comes from.
Fortunately, I found a hardcopy, so I did a copy/paste into the editor.
In theory, you could read out the EEPROM using another BS2.
But then you' have to decode the tokens...
I think someone once managed to decode them, but it was a lot of work...
(The tokens are not all the same size for one thing, and different instructions is encoded into different number of tokens)
So the end result (if you're ever successful... ) will not look anything like the original.
I think there's a book that describes the tokens, but can't remember the name.
Doesn't really matter as the last time I saw it on Amazon, it was pretty expensive...
http://www.amazon.com/Inside-BASIC-Stamp-Brian-Forbes/dp/B00BQ0GCPU/ref=sr_1_1?ie=UTF8&qid=1393097198&sr=8-1&keywords=inside+the+basic+stamp
For some reason, I have two copies on my shelf. Would be willing to let go of one for $20 and postage.
AT one time I could read Basic code from a core dump to printer. What you need is a PRM for the PIC16F57 chip.
If I knew where to look there probably is a decompiler out in the ether.
Tim