P1 Spin for P2
Cluso99
Posts: 18,069
in Propeller 2
I am thinking about how to make the P1 Spin Interpreter work on P2 with the least number of changes.
This means keeping the 64KB limit (16-bit addressing) and basically just using the compatible PASM instructions, at least for now.
There are a few gotchas...
The need for the lower 16 or so bytes/longs in Hub RAM
I know there will be others. Just cannot think of them atm.
This means keeping the 64KB limit (16-bit addressing) and basically just using the compatible PASM instructions, at least for now.
There are a few gotchas...
The need for the lower 16 or so bytes/longs in Hub RAM
I know there will be others. Just cannot think of them atm.
Comments
What would be really nice is PropTool or OpenSpin taking a P1 spin and PASM program and compiling to P2. Not sure how we can combine Fastspin and P2ASM to achieve this. Certainly the grass roots are there.
In the long run I agree that having some kind of bytecode interpreter would be a good option. I suspect Chip has something in mind for this.
Eric
But as @ersmith said, with much more HUB in the P2 any P1program should fit.
And for the whole 'Blockly Universe' I am quite sure a transition to generating P2 code out of the created C will be done quite fast.
Mike
Anyway, I've been some checking and fixing some of what I've done to use xbyte/skip. I want to use my python program to create the skip bitmaps too.
I had already verified the register conversion to use the new locations for DIR/IN/OUT A & B, PTR, CNT etc. Of course there is no Video registers etc.
Probably will not get time to look at this until next w/e now.
I realize this post is two years old. At the moment we're not planning any Blockly ports for P2, from Spin or C. Blockly could the fastest way to make a simple series of getting-started type demonstrations, but this approach isn't necessary to start product developers in the right direction. At the moment, our efforts are on Spin2 and the MicroPython ports we're seeing from down under and Eric.
Once Chip verifies the final P2 silicon (maybe tomorrow, or Tuesday) we will start to get our act together with a more visible plan. Until that time, all internal beings are focused on revenue-generating activities so we can get to the next step.
Ken Gracey
I have started on porting Simple Libraries stuff over to ersmith's FlexC, so eventually you will be able to take BlocklyProp Generated C code and compile it with FlexGui to get P2 binaries.
People will also be able to this to take C stuff they have in SimpleIDE and get it running on P2 with FlexGui (with maybe some minor adjustments for multi C file projects.
I've got the simplei2c stuff already in there, Eric accepted the pull request, so it may be in the next FlexGui update.