What is the PASM Equivalent? (solved)

lardomlardom Posts: 1,556
edited 2019-09-22 - 18:41:23 in Propeller 1
waitpeq(%0100, %1100, 0) 'Wait for P3 & P2 to be low & high

I just wanted to know the proper syntax. Are the parentheses the only difference?
Larry

If the grass is greener on the other side...it's time to water your lawn.

Comments

  • I found a file on my computer named "pasm pulse measure". The first line is what I was looking for.
    ..  waitpeq pinA,pinA   'delta between 2 pulses
      mov temp1,cnt       '___-_______A
      waitpeq pinB,pinB   '______-____B
      mov temp2,cnt
      sub temp2,temp1
    
    Larry

    If the grass is greener on the other side...it's time to water your lawn.
  • The third argument in Spin was meant to cover a second bank of 32 pins in a device that never made it to production. In PASM, since there's no room in the instruction for a third argument, the plan was to signify which bank by the state of the carry flag, a really bad idea that I'm glad never saw the light of day.

    -Phil
    “Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away. -Antoine de Saint-Exupery
  • The third argument in Spin...
    I really never fully understood what programmers meant by the term "arguments". Thanks for clearing that up.
    Larry

    If the grass is greener on the other side...it's time to water your lawn.
Sign In or Register to comment.