@evildictaitor:I tried that, of course, but it seems to me that you didn't quite uderstand what I need to do. Simple cast would not solve the problem. I need modification of this function

 

int GHAL_AnalogIn_Read(unsigned char channel)

{
        return ((*((int*)(ADC_DATA_BASE_ADDRESS) + channel)) >>8) & 0x3FF;
}


or something like that...