• No error when converting unsigned char to pointer?
    I just noticed that my Keil C compiler doesn't flag assignment of an unsigned char to a pointer as an error: unsigned char xdata *src; unsigned char xdata array[10]; src = array[0]; This doesn...
  • No error when converting unsigned char to pointer?
    I just noticed that my Keil C compiler doesn't flag assignment of an unsigned char to a pointer as an error: unsigned char xdata *src; unsigned char xdata array[10]; src = array[0]; This doesn...
  • Converting 'short' to 'unsigned char'
    Hi, I've to debug an application written by someone else (...) An 'unsigned char' is used to be filled with data from a 'short'. If I change the source 'short' variabele type (filled somewhere...
  • Converting unsigned char[] to long?
    How can you access the individual bytes making up a variable of type long? What I need to do is move a 24-bit (3 bytes) unsigned char array into a long variable. An example: unsigned char a[3]; unsigned...
  • Converting 'short' to 'unsigned char'
    Hi, I've to debug an application written by someone else (...) An 'unsigned char' is used to be filled with data from a 'short'. If I change the source 'short' variabele type (filled somewhere...