eblc1388
Active Member
Hi,
On PIC programming.
Can anyone gives an explanation of what is actually meant by "to reverse a sequence of numbers" from the following:
Using the PIC Subtract Instructions
Thanks
On PIC programming.
Can anyone gives an explanation of what is actually meant by "to reverse a sequence of numbers" from the following:
Using the PIC Subtract Instructions
Code:
In general, any time it is necessary to reverse
a sequence of numbers from A to B (where A and B
are both in the range of 0 to 255), you can use
SUBLW A+B
which will work even if the sum A+B is greater than 255.
Thanks