you can set or clr any bit in an array
dis var byte 
dis.0[x] = 1 ; will set bit x in array dis where x=0 to 31
or make a user command something like this (untested)
It is indeed a complex problem. In any option chosen, there would be some overhead lower or higher I guess.
I think I will end up in the asm code to rotate the variables.
In order to save code, I'd like to do for n...next n cicle using classic var(n) to deal with 10 or more variables with same process. But I don't know if it is possible.
Is there a way in pbpl...
Thatís what I mean. Still a more difficult problem than appears, or more than it intuitively feels like it should be, if speed is the goal.
The extra 6 bits returned by a single 14 bit READCODE are...
I don’t know how PBP interrupts work, but yes you do have to clear the interrupt flag.
if INTCON.1 = 1 then ' check if portb.0 interrupt occurred
‘ do the thing you wanted portb.0 interrupt to...
Since using LONGs in the program will slow down the execution of the program, I am reluctant to use longs. Also the PIC that curretly is used is 16F series.
So, seems better to spend some bytes in...
Can LOOKUP/2 now contain enough elements,
or you'd need to use 4 lookups? (One for each byte element of the 32 bit val).
It does sound like reading program memory would be economical for that.
Yes, thats right.
In case you wonder is part of the Microchip Keeloq algo. A really intense algo...
Oh I get it, the 32 bit var always has 31 clear bits and 1 set bit.
Thank you so much Heckler, I guess you give me library file "alldigital.pbp". I m going to test it. But I am ok right now. I could find the problem. I substituted new microcontroller ic 16f628 and it...