Shop OBEX P1 Docs P2 Docs Learn Events
cog probleum — Parallax Forums

cog probleum

bkbovardbkbovard Posts: 5
edited 2009-08-11 20:11 in Propeller 1
i have probleum with this program i'm writing
this is a two voice music player
when it starts voice1 cog starts right away but voice2 dosen't start right away like i want .·it dosen't start
eventaly why dosen't start at the same time as voice1
thanks bkb

Comments

  • Bob Lawrence (VE1RLL)Bob Lawrence (VE1RLL) Posts: 1,720
    edited 2009-08-11 01:46
    Why don't you have any stack space for the new cog?

    i.e.

    VAR
     Long Stack[noparse][[/noparse]50]
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Aka: CosmicBob

    Post Edited (Bob Lawrence (VE1RLL)) : 8/11/2009 1:56:01 AM GMT
  • CounterRotatingPropsCounterRotatingProps Posts: 1,132
    edited 2009-08-11 01:49
    Hi bkbovard - welcome to the forums!

    You might also want to study this thread carefully concerning cog startup time:

    http://forums.parallax.com/forums/default.aspx?f=25&m=374443&g=374919#m374919

    - Howard

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-08-11 05:08
    Bob,

    Assembly cogs don't use stack space.

    -Phil
  • Bob Lawrence (VE1RLL)Bob Lawrence (VE1RLL) Posts: 1,720
    edited 2009-08-11 20:11
    Phil said...


    Bob,

    Assembly cogs don't use stack space.

    -Phil

    Thanks! Phil. I thought it may have been that but even after a year of Prop learning when I quickly look at code it's often confusing to know if it's Spin, Spin calling Asm, Asm, turn.gif I had to think it all through for a while before it finally made scense in that it's pure asm.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Aka: CosmicBob
Sign In or Register to comment.