Shop OBEX P1 Docs P2 Docs Learn Events
JP/JNP/JPD/JNPD - possible variation?? — Parallax Forums

JP/JNP/JPD/JNPD - possible variation??

Cluso99Cluso99 Posts: 18,069
edited 2013-10-10 17:30 in Propeller 2
I was thinking these could be more powerful if they used multiple pins as follows..

JP/JNP/JPD/JNPD #PIN - same as currently, test for a PIN =1 or =0

JPPOS/JPNEG/JPPOSD/JPNEGD MASK - where MASK = pins to test, POS = those pins are all 1's, NEG = those pins are all 0's

Using MASK = 1 << pin achieves a single pin using a register rather than immediate, but multiple pins can also be tested for all 1's or all 's.
Sign In or Register to comment.