Shop OBEX P1 Docs P2 Docs Learn Events
HW Multitasking question - task jump vectors at COG long 0,1,2,3 — Parallax Forums

HW Multitasking question - task jump vectors at COG long 0,1,2,3

mindrobotsmindrobots Posts: 6,506
edited 2014-04-04 13:29 in Propeller 2
Somewhere along the line, did we lose the ability to do this:
DAT
        orgh    $e00/4         
        org     0              
        jmp     #task0           
        jmp    #task1    ' it doesn't work with the T1-t3
        jmp    #task2    ' jump vectors here - it goes to never-never land    
        jmp    #task3    
and then at the start of task0, do a SETTASK to get the others running? I've been trying this all different ways and nothing seems to work on a simple COG mode LED blinker.

I'm having to do this:
task0   clkset    #$FF        
    jmpt1     #task1
    jmpt2    #task2
    jmpt3    #task3
    settask    #%%3210

which is no problem and is the same amount of code, just curious. The JMPTn instructions work just fine.

Running a DE0 with 2014_03_24 emulation. (Haven't tried it on the DE2) - code is attached, offending JMP instructions are commented out.

Comments

  • AribaAriba Posts: 2,690
    edited 2014-04-04 13:25
    Yes, I remember that Chip said all the Task-PCs are now initalized to 0 at begin.
    Just look at the P2-blog-thread - should be easy to find the appropriate post :smile:

    Andy
  • mindrobotsmindrobots Posts: 6,506
    edited 2014-04-04 13:29
    Thanks Andy!

    It really doesn't make a difference as far as the code goes. I'll hunt it down for my documentation. ....if i have the POWER to go searching through all that!! :lol:
Sign In or Register to comment.