Fastest way to toggle a bit in ASM
What's the fastest way to toggle a bit in MPASM for PIC16 devices?
The code has to be standalone - I mean that it can be called on any moment, without knowing the value of the bit on that moment.
Key criteria is speed here: a program with fewer instruction cycles is better. The number of instructions cycles is calculated as the number when the bit is 0 + the number when the bit is 1, divided by 2.
What's the fastest way to toggle a bit in MPASM for PIC16 devices?
The code has to be standalone - I mean that it can be called on any moment, without knowing the value of the bit on that moment.
Key criteria is speed here: a program with fewer instruction cycles is better. The number of instructions cycles is calculated as the number when the bit is 0 + the number when the bit is 1, divided by 2.
No comments:
Post a Comment