Shop OBEX P1 Docs P2 Docs Learn Events
Assembly routine from Spin — Parallax Forums

Assembly routine from Spin

GenetixGenetix Posts: 1,754
edited 2014-07-28 18:59 in Propeller 1
Can I run a small assembly routine from a Spin program using the same Cog?
I don't want to waste a Cog for a small piece of code.

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2014-07-27 16:04
    Genetix wrote: »
    Can I run a small assembly routine from a Spin program using the same Cog?
    I don't want to waste a Cog for a small piece of code.

    No, it's not possible. However a cog is only wasted when it's not being used and if you are using it for any code then it is not being wasted.
  • jazzedjazzed Posts: 11,803
    edited 2014-07-27 17:20
  • GenetixGenetix Posts: 1,754
    edited 2014-07-27 22:44
    Thanks Jazzed.
  • JonnyMacJonnyMac Posts: 9,105
    edited 2014-07-28 08:53
    Darn, I was hoping I could compile that with OpenSpin (under PropellerIDE) -- I wonder if OpenSpin will ever support the BST extensions like @@@?
  • GenetixGenetix Posts: 1,754
    edited 2014-07-28 18:59
    Jon, it's nice to see that even experts learn something from a newbie question.
Sign In or Register to comment.