I am in the process of converting a program from MikroC to ASM.
I am using the MikroC manual for assistance.
So far most seems to be fairly obvious as to what is being achieved.
But there is one function that I would like to get cleared up rather than guess.
It is the function of F0 and F1 in the following.
It does not appear to appear anywhere else in the code.
unsigned char enc_new;
unsigned char enc_last;
if(enc_new.F1 != enc_last.F0) mpos++;
else mpos--;
enc_last = enc_new;
if(PORTA.F0) pins.F0 = 1;
if(PORTA.F1) pins.F1 = 1;
What actually are F0/F1 doing?
Any help appreciated.
Max.
I am using the MikroC manual for assistance.
So far most seems to be fairly obvious as to what is being achieved.
But there is one function that I would like to get cleared up rather than guess.
It is the function of F0 and F1 in the following.
It does not appear to appear anywhere else in the code.
unsigned char enc_new;
unsigned char enc_last;
if(enc_new.F1 != enc_last.F0) mpos++;
else mpos--;
enc_last = enc_new;
if(PORTA.F0) pins.F0 = 1;
if(PORTA.F1) pins.F1 = 1;
What actually are F0/F1 doing?
Any help appreciated.
Max.