M
m
Guest
In experimenting with pics, (and probably other micros) one of the
often used instructions is DECFSZ, often followed by a goto (or even
pair of them) to get the program to branch as desired.
I always end up getting confused, and have to explicitly work out the
logic and put it in the comments in detail to try to not get it
backwards and branch the wrong way.
And even with that, I get maybe 20% of them wrong anyway and only find
it in debuging.
BLEAH !!!
There has to be a mnemonic or way of looking at it which helps keep it
straight.
Anyone have any suggestions.
P.S. any help for the same issue with BTFSC and BTFSS
often used instructions is DECFSZ, often followed by a goto (or even
pair of them) to get the program to branch as desired.
I always end up getting confused, and have to explicitly work out the
logic and put it in the comments in detail to try to not get it
backwards and branch the wrong way.
And even with that, I get maybe 20% of them wrong anyway and only find
it in debuging.
BLEAH !!!
There has to be a mnemonic or way of looking at it which helps keep it
straight.
Anyone have any suggestions.
P.S. any help for the same issue with BTFSC and BTFSS