Home
last modified time | relevance | path

Searched refs:make_bcd (Results 1 – 18 of 18) sorted by relevance

/dports/emulators/mess/mame-mame0226/src/devices/machine/
H A Dmm58167.cpp124 m_regs[R_CNT_MILLISECONDS] = time_helper::make_bcd(m_milliseconds % 10); in device_timer()
125 m_regs[R_CNT_HUNDTENTHS] = time_helper::make_bcd(m_milliseconds / 10); in device_timer()
158 m_regs[R_CNT_SECONDS] = time_helper::make_bcd(second); // seconds (BCD) in rtc_clock_updated()
159 m_regs[R_CNT_MINUTES] = time_helper::make_bcd(minute); // minutes (BCD) in rtc_clock_updated()
160 m_regs[R_CNT_HOURS] = time_helper::make_bcd(hour); // hour (BCD) in rtc_clock_updated()
161 m_regs[R_CNT_DAYOFWEEK] = time_helper::make_bcd(day_of_week); // day of the week (BCD) in rtc_clock_updated()
162 m_regs[R_CNT_DAYOFMONTH] = time_helper::make_bcd(day); // day of the month (BCD) in rtc_clock_updated()
163 m_regs[R_CNT_MONTH] = time_helper::make_bcd(month); // month (BCD) in rtc_clock_updated()
H A Dcdp1879.cpp95 m_regs[R_CNT_SECONDS] = time_helper::make_bcd(second); // seconds (BCD) in rtc_clock_updated()
96 m_regs[R_CNT_MINUTES] = time_helper::make_bcd(minute); // minutes (BCD) in rtc_clock_updated()
97 m_regs[R_CNT_HOURS] = time_helper::make_bcd(hour); // hour (BCD) in rtc_clock_updated()
98 m_regs[R_CNT_DAYOFMONTH] = time_helper::make_bcd(day); // day of the month (BCD) in rtc_clock_updated()
99 m_regs[R_CNT_MONTH] = time_helper::make_bcd(month); // month (BCD) in rtc_clock_updated()
H A Ddp8573.cpp59 m_ram[REG_SECOND] = time_helper::make_bcd(systime.utc_time.second); in sync_time()
60 m_ram[REG_MINUTE] = time_helper::make_bcd(systime.utc_time.minute); in sync_time()
61 m_ram[REG_HOUR] = time_helper::make_bcd(systime.utc_time.hour); in sync_time()
62 m_ram[REG_DAY] = time_helper::make_bcd(systime.utc_time.mday); in sync_time()
63 m_ram[REG_MONTH] = time_helper::make_bcd(systime.utc_time.month + 1); in sync_time()
64 m_ram[REG_YEAR] = time_helper::make_bcd(systime.utc_time.year % 100); in sync_time()
65 m_ram[REG_DAYOFWEEK] = time_helper::make_bcd(systime.utc_time.weekday + 1); in sync_time()
249 m_ram[REG_HOUR] = time_helper::make_bcd(hour % 12); in write()
254 m_ram[REG_HOUR] = time_helper::make_bcd(hour); in write()
H A Dds1386.cpp137 m_seconds = time_helper::make_bcd(second); in rtc_clock_updated()
138 m_minutes = time_helper::make_bcd(minute); in rtc_clock_updated()
142 m_hours = time_helper::make_bcd(hour == 12 ? 12 : hour - 12) | HOURS_12_24 | HOURS_AM_PM; in rtc_clock_updated()
144 m_hours = time_helper::make_bcd(hour == 0 ? 12 : hour) | HOURS_12_24; in rtc_clock_updated()
147 m_hours = time_helper::make_bcd(hour); in rtc_clock_updated()
148 m_days = time_helper::make_bcd(day_of_week); in rtc_clock_updated()
149 m_date = time_helper::make_bcd(second); in rtc_clock_updated()
150 m_months_enables = (time_helper::make_bcd(month) & 0x1f) | (m_months_enables & 0xc0); in rtc_clock_updated()
151 m_years = time_helper::make_bcd(year); in rtc_clock_updated()
H A Dtimekpr.cpp208 m_seconds = time_helper::make_bcd(systime.local_time.second); in device_start()
209 m_minutes = time_helper::make_bcd(systime.local_time.minute); in device_start()
210 m_hours = time_helper::make_bcd(systime.local_time.hour); in device_start()
211 m_day = time_helper::make_bcd(systime.local_time.weekday + 1); in device_start()
212 m_date = time_helper::make_bcd(systime.local_time.mday); in device_start()
213 m_month = time_helper::make_bcd(systime.local_time.month + 1); in device_start()
214 m_year = time_helper::make_bcd(systime.local_time.year % 100); in device_start()
215 m_century = time_helper::make_bcd(systime.local_time.year / 100); in device_start()
H A Dtimehelp.h19 static inline uint8_t make_bcd(uint8_t data) in make_bcd() function
/dports/emulators/mame/mame-mame0226/src/devices/machine/
H A Dmm58167.cpp124 m_regs[R_CNT_MILLISECONDS] = time_helper::make_bcd(m_milliseconds % 10); in device_timer()
125 m_regs[R_CNT_HUNDTENTHS] = time_helper::make_bcd(m_milliseconds / 10); in device_timer()
158 m_regs[R_CNT_SECONDS] = time_helper::make_bcd(second); // seconds (BCD) in rtc_clock_updated()
159 m_regs[R_CNT_MINUTES] = time_helper::make_bcd(minute); // minutes (BCD) in rtc_clock_updated()
160 m_regs[R_CNT_HOURS] = time_helper::make_bcd(hour); // hour (BCD) in rtc_clock_updated()
161 m_regs[R_CNT_DAYOFWEEK] = time_helper::make_bcd(day_of_week); // day of the week (BCD) in rtc_clock_updated()
162 m_regs[R_CNT_DAYOFMONTH] = time_helper::make_bcd(day); // day of the month (BCD) in rtc_clock_updated()
163 m_regs[R_CNT_MONTH] = time_helper::make_bcd(month); // month (BCD) in rtc_clock_updated()
H A Dcdp1879.cpp95 m_regs[R_CNT_SECONDS] = time_helper::make_bcd(second); // seconds (BCD) in rtc_clock_updated()
96 m_regs[R_CNT_MINUTES] = time_helper::make_bcd(minute); // minutes (BCD) in rtc_clock_updated()
97 m_regs[R_CNT_HOURS] = time_helper::make_bcd(hour); // hour (BCD) in rtc_clock_updated()
98 m_regs[R_CNT_DAYOFMONTH] = time_helper::make_bcd(day); // day of the month (BCD) in rtc_clock_updated()
99 m_regs[R_CNT_MONTH] = time_helper::make_bcd(month); // month (BCD) in rtc_clock_updated()
H A Ddp8573.cpp59 m_ram[REG_SECOND] = time_helper::make_bcd(systime.utc_time.second); in sync_time()
60 m_ram[REG_MINUTE] = time_helper::make_bcd(systime.utc_time.minute); in sync_time()
61 m_ram[REG_HOUR] = time_helper::make_bcd(systime.utc_time.hour); in sync_time()
62 m_ram[REG_DAY] = time_helper::make_bcd(systime.utc_time.mday); in sync_time()
63 m_ram[REG_MONTH] = time_helper::make_bcd(systime.utc_time.month + 1); in sync_time()
64 m_ram[REG_YEAR] = time_helper::make_bcd(systime.utc_time.year % 100); in sync_time()
65 m_ram[REG_DAYOFWEEK] = time_helper::make_bcd(systime.utc_time.weekday + 1); in sync_time()
249 m_ram[REG_HOUR] = time_helper::make_bcd(hour % 12); in write()
254 m_ram[REG_HOUR] = time_helper::make_bcd(hour); in write()
H A Dds1386.cpp137 m_seconds = time_helper::make_bcd(second); in rtc_clock_updated()
138 m_minutes = time_helper::make_bcd(minute); in rtc_clock_updated()
142 m_hours = time_helper::make_bcd(hour == 12 ? 12 : hour - 12) | HOURS_12_24 | HOURS_AM_PM; in rtc_clock_updated()
144 m_hours = time_helper::make_bcd(hour == 0 ? 12 : hour) | HOURS_12_24; in rtc_clock_updated()
147 m_hours = time_helper::make_bcd(hour); in rtc_clock_updated()
148 m_days = time_helper::make_bcd(day_of_week); in rtc_clock_updated()
149 m_date = time_helper::make_bcd(second); in rtc_clock_updated()
150 m_months_enables = (time_helper::make_bcd(month) & 0x1f) | (m_months_enables & 0xc0); in rtc_clock_updated()
151 m_years = time_helper::make_bcd(year); in rtc_clock_updated()
H A Dtimekpr.cpp208 m_seconds = time_helper::make_bcd(systime.local_time.second); in device_start()
209 m_minutes = time_helper::make_bcd(systime.local_time.minute); in device_start()
210 m_hours = time_helper::make_bcd(systime.local_time.hour); in device_start()
211 m_day = time_helper::make_bcd(systime.local_time.weekday + 1); in device_start()
212 m_date = time_helper::make_bcd(systime.local_time.mday); in device_start()
213 m_month = time_helper::make_bcd(systime.local_time.month + 1); in device_start()
214 m_year = time_helper::make_bcd(systime.local_time.year % 100); in device_start()
215 m_century = time_helper::make_bcd(systime.local_time.year / 100); in device_start()
H A Dtimehelp.h19 static inline uint8_t make_bcd(uint8_t data) in make_bcd() function
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burn/devices/
H A Dtimekpr.cpp64 static inline UINT8 make_bcd(UINT8 data) in make_bcd() function
359 Chip.seconds = make_bcd(timeinfo.tm_sec); in TimeKeeperInit()
360 Chip.minutes = make_bcd(timeinfo.tm_min); in TimeKeeperInit()
361 Chip.hours = make_bcd(timeinfo.tm_hour); in TimeKeeperInit()
362 Chip.day = make_bcd(timeinfo.tm_wday + 1 ); in TimeKeeperInit()
363 Chip.date = make_bcd(timeinfo.tm_mday ); in TimeKeeperInit()
364 Chip.month = make_bcd(timeinfo.tm_mon + 1 ); in TimeKeeperInit()
365 Chip.year = make_bcd(timeinfo.tm_year % 100 ); in TimeKeeperInit()
366 Chip.century = make_bcd(timeinfo.tm_year / 100 ); in TimeKeeperInit()
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burn/devices/
H A Dtimekpr.cpp64 static inline UINT8 make_bcd(UINT8 data) in make_bcd() function
361 Chip.seconds = make_bcd(timeinfo->tm_sec); in TimeKeeperInit()
362 Chip.minutes = make_bcd(timeinfo->tm_min); in TimeKeeperInit()
363 Chip.hours = make_bcd(timeinfo->tm_hour); in TimeKeeperInit()
364 Chip.day = make_bcd(timeinfo->tm_wday + 1 ); in TimeKeeperInit()
365 Chip.date = make_bcd(timeinfo->tm_mday ); in TimeKeeperInit()
366 Chip.month = make_bcd(timeinfo->tm_mon + 1 ); in TimeKeeperInit()
367 Chip.year = make_bcd(timeinfo->tm_year % 100 ); in TimeKeeperInit()
368 Chip.century = make_bcd(timeinfo->tm_year / 100 ); in TimeKeeperInit()
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/machine/
H A Dmidwayic.c228 static INLINE UINT8 make_bcd(UINT8 data) in make_bcd() function
340 pic.buffer[pic.total++] = make_bcd(exptime->tm_sec); in midway_serial_pic2_w()
341 pic.buffer[pic.total++] = make_bcd(exptime->tm_min); in midway_serial_pic2_w()
342 pic.buffer[pic.total++] = make_bcd(exptime->tm_hour); in midway_serial_pic2_w()
343 pic.buffer[pic.total++] = make_bcd(exptime->tm_wday + 1); in midway_serial_pic2_w()
344 pic.buffer[pic.total++] = make_bcd(exptime->tm_mday); in midway_serial_pic2_w()
345 pic.buffer[pic.total++] = make_bcd(exptime->tm_mon + 1); in midway_serial_pic2_w()
346 pic.buffer[pic.total++] = make_bcd(exptime->tm_year - pic.yearoffs); in midway_serial_pic2_w()
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/machine/
H A Dmidwayic.c228 static INLINE UINT8 make_bcd(UINT8 data) in make_bcd() function
340 pic.buffer[pic.total++] = make_bcd(exptime->tm_sec); in midway_serial_pic2_w()
341 pic.buffer[pic.total++] = make_bcd(exptime->tm_min); in midway_serial_pic2_w()
342 pic.buffer[pic.total++] = make_bcd(exptime->tm_hour); in midway_serial_pic2_w()
343 pic.buffer[pic.total++] = make_bcd(exptime->tm_wday + 1); in midway_serial_pic2_w()
344 pic.buffer[pic.total++] = make_bcd(exptime->tm_mday); in midway_serial_pic2_w()
345 pic.buffer[pic.total++] = make_bcd(exptime->tm_mon + 1); in midway_serial_pic2_w()
346 pic.buffer[pic.total++] = make_bcd(exptime->tm_year - pic.yearoffs); in midway_serial_pic2_w()
/dports/emulators/mess/mame-mame0226/src/mame/machine/
H A Dmidwayic.cpp318 static inline uint8_t make_bcd(uint8_t data) in make_bcd() function
500 m_buffer[m_total++] = make_bcd(systime.local_time.second); in write()
501 m_buffer[m_total++] = make_bcd(systime.local_time.minute); in write()
502 m_buffer[m_total++] = make_bcd(systime.local_time.hour); in write()
503 m_buffer[m_total++] = make_bcd(systime.local_time.weekday + 1); in write()
504 m_buffer[m_total++] = make_bcd(systime.local_time.mday); in write()
505 m_buffer[m_total++] = make_bcd(systime.local_time.month + 1); in write()
506 m_buffer[m_total++] = make_bcd(systime.local_time.year - 1900 - m_yearoffs); in write()
/dports/emulators/mame/mame-mame0226/src/mame/machine/
H A Dmidwayic.cpp318 static inline uint8_t make_bcd(uint8_t data) in make_bcd() function
500 m_buffer[m_total++] = make_bcd(systime.local_time.second); in write()
501 m_buffer[m_total++] = make_bcd(systime.local_time.minute); in write()
502 m_buffer[m_total++] = make_bcd(systime.local_time.hour); in write()
503 m_buffer[m_total++] = make_bcd(systime.local_time.weekday + 1); in write()
504 m_buffer[m_total++] = make_bcd(systime.local_time.mday); in write()
505 m_buffer[m_total++] = make_bcd(systime.local_time.month + 1); in write()
506 m_buffer[m_total++] = make_bcd(systime.local_time.year - 1900 - m_yearoffs); in write()