Is there an equivalent p2asm for the P1?
Peter Jakacki
Posts: 10,193
in Propeller 1
I like using @"Dave Hein"'s excellent p2asm for assembling P2 files since I use the m4 preprocessor to manage my include files and then loadp2 to load it onto the P2. p2asm also generates a proper listing.
Now I am looking at standardizing how I compile Tachyon for P1 and TAQOZ for P2 while making Forth source files as compatible as possible since I am redoing EASYFILE and EASYNET and I want to use the same source with conditional compile for P1 and P2.
Is there something like p2asm and even loadp2 for the P1?
Now I am looking at standardizing how I compile Tachyon for P1 and TAQOZ for P2 while making Forth source files as compatible as possible since I am redoing EASYFILE and EASYNET and I want to use the same source with conditional compile for P1 and P2.
Is there something like p2asm and even loadp2 for the P1?
Comments
EDIT: And also spinpp, which is a C-like preprocessor for Spin/PASM programs.
All support conditional assembly. bst and homespun have optional listings, not sure about OpenSpin.
Spinnaker does as well. Here are the changes Spinnaker makes to Openspin:
@RossH - You mentioned the preprocessor behavior. Does Spinnaker allow include files and conditional assembly specified in the source file vs command line? Certainly with the ifdef type statements it looks like it can handle conditional assembly.
This is the main reason I use m4 although it is a lot more powerful than that. However I want to make sure it is just as easy for someone else to compile too although of course there would always be the output file from the preprocessor that could be used.
fastspin can handle both P1 and P2 assembly and has conditional compilation, so you can use the same source with it to produce both P1 and P2 binaries.
In place of loadp2 I use the command line propeller-load tool for P1. FlexGUI comes with fastspin, loadp2, and propeller-load all packaged together.
Yes, spinpp is equivalent to cpp, but for Spin programs.
The bake and m4 file generate a standard .spin and binary output as well as downloading it to the P1.
This thread is simply about a different way to maintain and build the kernel rather than as one big ugly file using the Prop tool or equivalent.