HW Multitasking question - task jump vectors at COG long 0,1,2,3
mindrobots
Posts: 6,506
Somewhere along the line, did we lose the ability to do this:
I'm having to do this:
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.
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
Just look at the P2-blog-thread - should be easy to find the appropriate post
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!!