I have the question on typecasting mechanism :
The simple code is below (small memory model):
const unsigned char test_ch = (unsigned char )&handler; // Does not work ...storage dest is too small. I understand and would expect that test_ch would contain either msb or lsb of the handler's address!?
const SPLIT_T test_split = (SPLIT_T )&handler; // Compiler complaines - illegal typecast ????