[an error occurred while processing this directive]
|
typedef unsigned char BYTE;
typedef unsigned short WORD;
#define MSB(word) (BYTE)(((WORD)(word) >> 8) & 0xff)
#define LSB(word) (BYTE)((WORD)(word) & 0xff)
WORD val1;
BYTE val2,val3;
val2 = MSB(val1);
val3 = LSB(val1);
E-mail: info@telesys.ru