RTC_DAY_MASK
week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;
writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);
writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);
week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;
week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;
writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);