Shop OBEX P1 Docs P2 Docs Learn Events
Question about BST — Parallax Forums

Question about BST

4x5n4x5n Posts: 745
edited 2011-09-13 21:14 in Propeller 1
I run Linux and Solaris on my machines at home and my only access to windows is via virtual box on my linux desk top. As a result I'm interested in moving away from the parallax provided development tools and would like to move to BST.

I downloaded and unzipped the latest version of BST and after working my way through some issues have gotten to like it. I do have a few questions about it though. When writing spin methods I notice it doesn't show indentation linkage like the parallax tool does. I got used to this in helping with keeping track of blocking. I searched through the gui and haven't been able to find the ability to enable it. Is this option available somehow and if not can I make a feature request to add it. :-)

My second question is: Can I use BST to develop PASM programs?

Comments

  • Heater.Heater. Posts: 21,230
    edited 2011-09-12 00:15
    As far as I know BST does not have a block indentation marking facility. Unless it is in some very new version I have not tried yet. You can always put in a feature request. In the past the author, BradC, was very welcoming and responsive to such requests. Recently though he has not shown up on the forums for whatever reason. I hope all is well with BradC.
    In the meantime you could try out Andrey Demenev's PZST IDE which is also cross platform and at least has a means of showing indentation levels clearly. It is very slick and uses BradC's Spin compiler, BSTC, as the back end.
    Yes you can develop in PASM with these tools. You only need to have a minimal few lines of spin to get the PASM started.
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-09-12 02:12
    4x5n: As heater as said, bst can be used for both spin and pasm. It has an inbuilt terminal program as well. IMHO it is way superior to the PropTool. I am unsure about the showing indentation as I do not use it, although I did think it was possible, Perhaps more searching is in order. bst also has a listing too. There are a few quirks to get the extras, but well worth it, even under windoze (which I use).

    I am not sure Brad is around to add features although I am reasonably sure he would still fix any bugs found. He has tried to ensure that his compiler is able to produce identical results to PropTool.

    The biggest benefit though has to be in the #ifdef modes for conditional compilation. ZiCog (a CPM emulation) uses this heavily.
  • Heater.Heater. Posts: 21,230
    edited 2011-09-12 02:43
    Example of minimal Spin start up required for your PASM code. Compile with BST or Prop Tool or HomeSpun.
    VAR
      long par1
      long par2
      long par3
    
    PUB main
      'Set up some params for the PASM code if needed
      par1 := 1
      par2 := 2
      par3 := 3
    
      ' Restart the COG running this Spin code with the PASM below
      coginit (cogid, @entry, @par1)
    
      ' Now there is nothing but PASM running on your Propeller. 
    
    DAT
            org   0
    entry   mov   parptr, par
            '
            ' Lots of PASM code here
            '
            '
    parptr long 0
            fit 496
    
  • 4x5n4x5n Posts: 745
    edited 2011-09-13 16:41
    Heater,

    Thank for the reference to pzst. Do you know if it supports propbasic?
  • Heater.Heater. Posts: 21,230
    edited 2011-09-13 21:14
    No it does not support propBasic.
Sign In or Register to comment.