Manual and Propeller tool should both warn about the RES keyword!
Dennis Ferron
Posts: 480
The Propeller manual v1.01 does not warn about the danger of the RES keyword. Basically, the problem is all your RES's must be at the end of your program. If you accidently include a "RES" in the middle of your program, you don't get any warnings but all your code sometimes works and sometimes does not. I just spent all night trying to track down a bug in my code which was caused by RES. I finally narrowed it down enough to search for "RES" in the Propeller Tricks and Traps thread. But the Propeller manual ought to say something about this in the section about RES. And the Propeller tool ought to warn you if you include a RES in the middle of your code. I can't see any use-case where the programmer would actually intend to invoke the current (buggy) behavior of a RES in the middle of your program; this usage should simply not be allowed to compile.
Comments
And here's another thing that'd need warnings or something (Ok, this topic has been discussed so many times... but anyway):
wrlong ina, something doesn't work - some special regs can't be used as destination register
Oh I forgot about that. I can't wait to see a Hydra-like system with the Propeller2; I imagine it would be possible to create a 3-d pipeline for it.
Ha ha, yes!
Actually I was thinking I would put a Prop2 on my blank experimenter card. As someone mentioned in another thread, the best peripheral for the Propeller is... another Propeller!
I wouldn't have thought of trying to replace the actual main CPU in the Hydra, but you do bring up an interesting question. I wonder whether the next generation Propeller will be pin-compatible with the current Prop? They hinted there might still be a DIP version even in the new one (it just wouldn't have the second set of 32 I/O pins). Or maybe not; but if there is, I wonder if it would be possible to simply drop it in to replace the current one?
Sincerely,
sa
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
sanandak: I'm thinking ought to put all this into a book, something like "Secrets of Propeller Assembly"