ASM: initial flag state after coginit
kuroneko
Posts: 3,623
What's the state of the flags Z and C when the cog starts executing user code?
TIA
TIA
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 4/9/2008 6:35:01 PM GMT
The point is that every processor I dealt with so far informs me in its data sheet what the initial state of registers and flags is, where execution starts etc. Yes, I could write some code, but that doesn't guarantee that I will always get those values.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
There is nothing wrong with due-dilligence, but since the flags are set as a
result of conditions that you want to test deterministicly, the point is curious.
The only functional reason I would care is in doing a "power on reset" value
check as is typically done for complex ASICs, but less so for FPGAs. Of course
there are other methods for ASIC screening ....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
jazzed·... about·living in·http://en.wikipedia.org/wiki/Silicon_Valley
Traffic is slow at times, but Parallax orders·always get here fast 8)
Thank you!
-Stephen, KZ0Q
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
PS dont email jeff please, he's a very busy man. If you've found something, chances are we already know about it, but perhaps we don't. So check the errata document first. If it's not there send an email to me or stephanie lindsay our editor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 4/10/2008 1:47:10 AM GMT