Really?! Did I just waste a day because I actually RTM? (Yes I did)
ags
Posts: 386
On page 375 of the Propeller Manual (current version for download: "Web-PropellerManual-v1.2.pdf") claims this about the PASM WRLONG instruction:
After running out of other ideas debugging a nasty problem, I followed the line above with this additional line (nothing intervening between the two):
and now the problem is no longer observed. The only conclusion I can come to is that wrlong does not always clear the z-flag.
On the one hand, I hope my theory is correct because it means I've identified (and resolved) this problem. On the other had, I hope I'm incorrect, because that indicates just plain sloppy documentation. The line (quoted above) is so basic and unambiguous that it's hard to image there was any misinterpretation involved. It seems to be just plain wrong, clearly not having passed even minimal checking.
Can someone weigh in on this? Thanks.
Because of that, I used this line to write a long to hub RAM and ensure the z-flag was cleared:The Z flag is always cleared (0) since the main memory address (bits 13:2) is always on a long boundary.
wrlong myValue, hubAddress wz
After running out of other ideas debugging a nasty problem, I followed the line above with this additional line (nothing intervening between the two):
test $, #1 wz
and now the problem is no longer observed. The only conclusion I can come to is that wrlong does not always clear the z-flag.
On the one hand, I hope my theory is correct because it means I've identified (and resolved) this problem. On the other had, I hope I'm incorrect, because that indicates just plain sloppy documentation. The line (quoted above) is so basic and unambiguous that it's hard to image there was any misinterpretation involved. It seems to be just plain wrong, clearly not having passed even minimal checking.
Can someone weigh in on this? Thanks.
Comments
I've gone to the trouble of sending other less severe documentation flaws to "Parallax" (I could be sending to the wrong place) but have never received any indication that it was used to update the docs. I'm not particularly motivated to compound the time wasted on this with more time spent trying to help with corrections if it is ignored.