PDA

View Full Version : Saving code from ServoPod


DennisD
10-01-03, 03:52 PM
Just got my ServoPod last night, and am having fun learning IsoMax. One thing I haven't figured out is, once I have my program all debugged and working, how can I save the source code from the ServoPod to a disk file on my host computer?

I can see how I could use a terminal program to download a source file to the ServoPod, and I can see how to save that to Flash using EEWORD and IN-EE, but how do I go the other direction? E.g., if I've been debugging a routine interactively on the 'pod and now have it the way I want it, how do I upload that definition so I can back it up or fan it out to other 'pods?

Ideally, I'd like to upload all the words I've defined (everything that would be deleted by SCRUB).

Thanks,
Dennis Draheim

Dave
10-01-03, 04:50 PM
Hi Dennis,
Code is typically saved into a text file, either in notepad or some other editor. NMITerm has a built in text editor to use while you're interactive with the ServoPod. The new lines and words you type in could then be copy and pasted to whichever editor you chose. NMITerm also looks for text files to directly download into the Pods. HTH

DennisD
10-01-03, 05:37 PM
I guess I was asking whether there was a way to display the source code of a word that has been defined interactively. I now realize that that would probably be impractical, because it's undoubtedly tokenized the moment I enter it, and the source code is then forgotten. Am I right in assuming that, for lack of memory space, there isn't a decompiler/detokenizer in the kernel that could display the definition of a word?

Given that, is there a way to list the names of the words that would be destroyed if I did a SCRUB? Presumably the system must know where the built-in words end and my user-defined words begin, so can it display just mine? That way I could remember what I've done and make sure I have it saved off somewhere before I do a SCRUB.

Thanks,
Dennis

Dave
10-01-03, 05:55 PM
You are correct, no decompiler present in the ServoPod.

Words, including new ones you've defined can be displayed by typing in WORDS to display currently used available and memory locations.

nmitech
10-01-03, 06:12 PM
Use the NMITerm CAPTURE feature to capture raw data on the Terminal screen. This is not a proper way to save file for download, atleast you can see what have been changed lately.

FYI, The way CAPTURE works on V0.9.79 is saved everything you see on the Terminal screen at the time the CAPTURE (log book icon) is turned on.