Shop OBEX P1 Docs P2 Docs Learn Events
WAITPEQ & WAITPNE — Parallax Forums

WAITPEQ & WAITPNE

ksltdksltd Posts: 163
edited 2015-02-04 13:11 in Propeller 1
There's no documentation of what result gets written to the D register if the WR flag is set. Is this result the value of INA before or after the AND with S?

For WAITPNE, does the carry really get set unconditionally if the S and D are both zeros?

Finally, with no indication of what's at INA, from where did the values shown in the Out Destination columns come?

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2015-02-04 12:20
    ksltd wrote: »
    There's no documentation of what result gets written to the D register if the WR flag is set. Is this result the value of INA before or after the AND with S?

    For WAITPNE, does the carry really get set unconditionally if the S and D are both zeros?
    * waitpeq target, mask wr will perform target +=  mask (same for waitvid)
        * waitpne target, mask wr will perform target += (mask + 1)
    
  • ksltdksltd Posts: 163
    edited 2015-02-04 12:29
    So the result written has nothing to do with the value of ina? And did you really mean "+" and not "&"?
  • kuronekokuroneko Posts: 3,623
    edited 2015-02-04 12:41
    ksltd wrote: »
    So the result written has nothing to do with the value of ina? And did you really mean "+" and not "&"?
    Yes to both questions.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2015-02-04 13:11
    kstld wrote:
    So the result written has nothing to do with the value of ina? And did you really mean "+" and not "&"?
    It probably uses part of the same hardware logic that waitct uses, hence the addition.

    -Phil
Sign In or Register to comment.