Prof,
I hope I don't disturb the great organization you've brought to the problem or prompt a brawl.
I want quick answers, and the PM isn't organized that way. It's not like a PIC, ARM, or AVR users manual. I find the PM more useful now than when I started. IMHO the PM absolutely sucks as a way to learn PASM, but isn't too bad as an adjunct to getting up to speed with SPIN, although there are far too many words. I'll never read all the words in the PM as long as I live. Sorry, but that's just how it is. No amount of RTFM insults will change that reality.
I think there is a need for a PASM manual that puts something like this...
Code:
VAR
long Shared 'Shared variable (Spin & Assy)
PUB Main | Temp
cognew(@Process, @Shared) 'Launch assy, pass Shared addr
repeat
<do something with Shared vars>
DAT
org 0
Process mov Mem, PAR 'Retrieve shared memory addr
:loop <do something>
wrlong ValReg, Mem 'Move ValReg value to Shared
jmp #:loop
Mem res 1
ValReg res 1
...on freaking Page 1 and then proceeds to explain each point. At about Page 4 or 5, I'd put something like a simplified version of FullDuplexSerial (take out the polarity options, for example) and proceed to discuss the new concepts it introduces....
This is the sort of presentation that would ultimately draw me to the PM for further enlightenment.
Edit: I guess what I'm describing is a heavily edited version of deSilva that has the imprimatur of Parallax.
Bookmarks