I'm getting close to having my P1 OS running on P2
I have the SD and serial/monitor routines working, and they can remain resident.
I have Kye's FAT32 driver (including my P1 OS additions) now compiling and the basics running
I have a few of my OS commands (DIR, LS, etc) running on P2 (currently compiled in, not as a separate exe)
Now is the time to discuss...
* How binary files are formatted for loading and running under the OS
* How spin2 files can be loaded and run
* How the SPIN2 Interpreter can remain resident while running, plus
* Loading and running additional spin2 cogs
First up, I need to know the mechanics of how I can use the spin2 interpreter when loading a new spin2 compiled file from SD.
I have the locating and loading from SD covered.
Where is the interpreter in hub?
Is the interpreter always in this location?
I presume the hubexec portion is re-entrant from multiple cogs?
How do I compile a spin2 program without the compiler?
How do I pick out the spin2 section from this binary file?
How do I launch a new cog with a new spin2 binary file?