Nevermind. You would need too many entries in the LOOKUP constant fields. That would be 64 entries to be precise since your variable PORT has 6 bits. It will be something like this
Henric, never the less, not as quick as 8 rotates and 8 jump on carry in-line. Worst case, with no bits set in the target thats only 16 cycles.
rscor01, I didn't realize LOOKUP would do that. How...
Like Archangel mentioned above, you should also try the LOOKUP command. This command takes only a few cycles to execute.rsocor01 Today, 06:18
| PICBASIC PRO™ Compiler 3.0 PBP is a BASIC programming language for Microchip's PIC microcontrollers.
Version 3 is a major evolution of this popular product, making it even more capable, stable, and reliable. All the years of development culminate here, with many new capabilities and improvements. Come see why thousands of engineers, educators and hobbyists have depended on PBP for more than a decade.
Software activation keys are delivered electronically after purchase.
15 Day Trial Before Activation Key is Required
If installed without an activation code, the software will be fully functional for 15 days.
Read about Product Activation