COGNEW ?
AGCB
Posts: 327
I notice in most assembly cognew instructions that +1 is added at end IE cognew(@entry,0)+1.
It was my reading of the manual that cognew starts in the next available cog. I did a debug of this and indeed it skips ahead by 2 when this +1 is pressent.
What is the reason for the +1?
Thanks
Aaron
It was my reading of the manual that cognew starts in the next available cog. I did a debug of this and indeed it skips ahead by 2 when this +1 is pressent.
What is the reason for the +1?
Thanks
Aaron
Comments
-Phil
So far in my programming I've just assumed they were going to start and not worried about testing (simple programs). I guess I have one more thing among thousands to learn.
Aaron
Sounds like the same thing Phil said.
I learned Spin from the v1.0 manual. Parallax later moved the Spin tutorial section out of the manual and into the Propeller Education Kit available in the Prop Tool's help menu.
I still like the tutorial in the version 1.0 manual. I wasn't able to find the version 1.0 manual online so I've made it available from my Dropbox. Here's the link.
and apparently hidden it in the Propeller Tool's help menu system.
Hidden under the F1 function key.
(Or select the first item in the Help menu - -> Propeller Help . . . F1.)
Lot of good stuff there.
"Spin Programming Tutorial" is the fourth item in the left column.
Page 117 thru Page 123 (Exercise 7) in the v1.0 manual
matches up with
Lesson 6 in the Propeller Tool's "Spin Programming Tutorial".
I was just studying in the prop manual and the PE tutorial. Even found I had previously highlighted some stuff.
Aaron