aljamri
Member
Hi,
again I'm using Mikroc and doing the following command:
if (PORTA.F2 = 1) PORTB.F4 = 1 ; else PORTB.F4 = 0 ;
Instead of the non clear term "PORTA.F2", I want to write a meaningful term like "S1".
I've tried:
S1 = PORTA.F2;
but not sucsed.
then tried adding assembly piece:
asm {
# define S1 PORTA,2
}
but then error message came " assinging to non I value"
my question is : how to replace PORTA.F2 with S1?
Thanks
again I'm using Mikroc and doing the following command:
if (PORTA.F2 = 1) PORTB.F4 = 1 ; else PORTB.F4 = 0 ;
Instead of the non clear term "PORTA.F2", I want to write a meaningful term like "S1".
I've tried:
S1 = PORTA.F2;
but not sucsed.
then tried adding assembly piece:
asm {
# define S1 PORTA,2
}
but then error message came " assinging to non I value"
my question is : how to replace PORTA.F2 with S1?
Thanks