Home
last modified time | relevance | path

Searched refs:int_to_bcd (Results 1 – 6 of 6) sorted by relevance

/dports/emulators/gxemul/gxemul-0.6.3/src/machines/
H A Dmachine_playstation2.cc49 static int int_to_bcd(int i) in int_to_bcd() function
145 * 1048576 - 0x1000 + 0x10 + 1, int_to_bcd(tm_ptr->tm_sec)); in MACHINE_SETUP()
147 * 1048576 - 0x1000 + 0x10 + 2, int_to_bcd(tm_ptr->tm_min)); in MACHINE_SETUP()
149 * 1048576 - 0x1000 + 0x10 + 3, int_to_bcd(tm_ptr->tm_hour)); in MACHINE_SETUP()
151 * 1048576 - 0x1000 + 0x10 + 5, int_to_bcd(tm_ptr->tm_mday)); in MACHINE_SETUP()
153 * 1048576 - 0x1000 + 0x10 + 6, int_to_bcd(tm_ptr->tm_mon+1)); in MACHINE_SETUP()
155 * 1048576 - 0x1000 + 0x10 + 7, int_to_bcd(tm_ptr->tm_year-100)); in MACHINE_SETUP()
/dports/emulators/sameboy/SameBoy-0.14.7/Core/
H A Dworkboy.c4 static inline uint8_t int_to_bcd(uint8_t i) in int_to_bcd() function
39 gb->workboy.buffer[2] = int_to_bcd(tm.tm_sec); // Seconds, BCD in serial_start()
40 gb->workboy.buffer[3] = int_to_bcd(tm.tm_min); // Minutes, BCD in serial_start()
41 gb->workboy.buffer[4] = int_to_bcd(tm.tm_hour); // Hours, BCD in serial_start()
42 …gb->workboy.buffer[5] = int_to_bcd(tm.tm_mday); // Days, BCD. Upper most 2 bits are added to Year … in serial_start()
43 gb->workboy.buffer[6] = int_to_bcd(tm.tm_mon + 1); // Months, BCD in serial_start()
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/rtc/
H A Drtc.c44 inline static int int_to_bcd(int dec) in int_to_bcd() function
63 return (uint8_t)((bcd) ? int_to_bcd(t.tv_usec / 10000) : t.tv_usec / 10000); in rtc_get_centisecond()
65 …return (uint8_t)((bcd) ? int_to_bcd(archdep_rtc_get_centisecond()) : archdep_rtc_get_centisecond()… in rtc_get_centisecond()
76 return (uint8_t)((bcd) ? int_to_bcd(local->tm_sec) : local->tm_sec); in rtc_get_second()
86 return (uint8_t)((bcd) ? int_to_bcd(local->tm_min) : local->tm_min); in rtc_get_minute()
96 return (uint8_t)((bcd) ? int_to_bcd(local->tm_hour) : local->tm_hour); in rtc_get_hour()
118 hour = (uint8_t)((bcd) ? int_to_bcd(hour) : hour); in rtc_get_hour_am_pm()
130 return (uint8_t)((bcd) ? int_to_bcd(local->tm_mday) : local->tm_mday); in rtc_get_day_of_month()
140 return (uint8_t)((bcd) ? int_to_bcd(local->tm_mon + 1) : (local->tm_mon + 1)); in rtc_get_month()
150 return (uint8_t)((bcd) ? int_to_bcd(local->tm_year % 100) : local->tm_year % 100); in rtc_get_year()
[all …]
/dports/emulators/vice/vice-3.5/src/rtc/
H A Drtc.c44 inline static int int_to_bcd(int dec) in int_to_bcd() function
59 return (uint8_t)((bcd) ? (uint8_t)int_to_bcd(archdep_rtc_get_centisecond()) in rtc_get_centisecond()
70 return (uint8_t)((bcd) ? int_to_bcd(local->tm_sec) : local->tm_sec); in rtc_get_second()
80 return (uint8_t)((bcd) ? int_to_bcd(local->tm_min) : local->tm_min); in rtc_get_minute()
90 return (uint8_t)((bcd) ? int_to_bcd(local->tm_hour) : local->tm_hour); in rtc_get_hour()
112 hour = (uint8_t)((bcd) ? int_to_bcd(hour) : hour); in rtc_get_hour_am_pm()
124 return (uint8_t)((bcd) ? int_to_bcd(local->tm_mday) : local->tm_mday); in rtc_get_day_of_month()
134 return (uint8_t)((bcd) ? int_to_bcd(local->tm_mon + 1) : (local->tm_mon + 1)); in rtc_get_month()
144 return (uint8_t)((bcd) ? int_to_bcd(local->tm_year % 100) : local->tm_year % 100); in rtc_get_year()
154 …return (uint8_t)((bcd) ? int_to_bcd((int)(local->tm_year / 100) + 19) : (int)(local->tm_year / 100… in rtc_get_century()
/dports/sysutils/dvdisaster/dvdisaster-0.79.5/
H A Drecover-raw.c265 static int int_to_bcd(int value) in int_to_bcd() function
285 min = int_to_bcd(min); in CheckMSF()
286 sec = int_to_bcd(sec); in CheckMSF()
287 frm = int_to_bcd(frm); in CheckMSF()
321 cd_frame[12] = int_to_bcd(minute); in InitializeCDFrame()
322 cd_frame[13] = int_to_bcd(second); in InitializeCDFrame()
323 cd_frame[14] = int_to_bcd(frame); in InitializeCDFrame()
/dports/emulators/jzintv/jzintv-20200712-src/examples/macro/
H A Dcp1600x.mac2151 ;; I2BCD src1,src2,dst_hi:dst_lo dst_hi:dst_lo = int_to_bcd(src1:src2) ;;