PASM: Can I add/sub/cmp on FRQA/B??
Alex.Stanfield
Posts: 198
The Propeller manual states that FRQA can be used as any other regular register, however I'm apparently seeing different behavior in PASM on FRQA when using it in ADD, SUB or CMP statements.
Any experience on this?
Alex
Any experience on this?
Alex
Comments
-Phil
Here's the routine that troubles me, if you un-comment the first and last 'mov' statements (with sFRQA) and replace FRQA with sFRQA in the in-between statements the routine gets to the "_Running" phase with the same parameters, as it's now it jumps from "_Starting " to "_Stopping"
Thanks for taking a look
Alex
will affect phsa after each step if the counter is running. That might not be the behavior that you want or expect.
-Phil
Agreed, but it doesn't matter in this case, those max/min statements are just to keep the upper/lower limits, and at the operating frequency it's not noticeable.
Alex