Can I read/pull my own code from my prop?
turbosupra
Posts: 1,088
I left my code on my thumb drive at home and would like to work on my prop before I get back home, is there a utility for this?
Comments
Not really, unless you can read bytecode.
If you want me to try to generate a source file just extract a binary file from the EEPROM and post it to this thread or PM me.
I stand joyfully corrected.
There is a way to prevent this happening again, keep the drive on your keychain... Doesn't stop
you locking yourself out because the drive's still in the machine though!
Backup to cloud and USBdrive?
I keep my Prop files in my Dropbox. No more trying to sync files with a USB drive.
I also like to know which program is presently loaded in a Propeller. To do this I add a short DAT section at the top of the program where I keep the name of the program.
Near the beginning of the program I send this string to the terminal so I know which version of the code is presently loaded.
This has been a huge convenience.
Just me being diligent to double check I have everything would be the best solution, the cloud would also be a good solution.
I like Duane's naming system, I have yet to setup a rx routine in this code, but that is in the plans.
I took a look, just out of curiosity...
I think if it were my Spin code lost and I knew what some of your symbols meant, I could remember what my Spin code was...
The grouping for the Spin statements can be determined by following through the stack usage for the opcodes, and locating when the stack goes down to zero. Exceptions to this rule are instructions like repeat that load parameters on the stack that are used during the entire loop.