JP/JNP/JPD/JNPD - possible variation??
Cluso99
Posts: 18,069
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.
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.