#define base 0xFFFFC000 #define &time base+2 void setHour(int hours){ time = time & 0x07FF; time = (hours << 11)|time; } int getHours(){ return ((int)(time>>11) & 0x001F); }
#define base 0xFFFFC000 #define &time base+2 void setSecond(int second){ time = time & 0xFFF0; time = second|time; } int getSecond(){ return ((int)time & 0x000F); }