Good to hear that ...
From mikroc 8.2 help file look for "Accessing Individual Bits"
mikroC allows you to access individual bits of 8-bit variables, types char and unsigned short. Simply use the direct member selector (.) with a variable, followed by one of identifiers F0, F1, … , F7, with F7 being the most significant bit.
For example:
// If RB0 is set, set RC0:
if (PORTB.F0) PORTC.F0 = 1;There is no need for any special declarations; this kind of selective access is an intrinsic feature of mikroC and can be used anywhere in the code. Identifiers F0–F7 are not case sensitive and have a specific namespace. You may override these with your own members F0–F7 within any given structure.
Provided you are familiar with the particular chip, you can also access bits by name:
// Clear TMR0F:
INTCON.TMR0F = 0;