mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
10 lines
219 B
C
10 lines
219 B
C
/*! \file bcd.h
|
|
\brief Functions for converting decimal to BCD.
|
|
*/
|
|
|
|
//! ROM table for conversion to BCD.
|
|
extern const char bcdtable[];
|
|
|
|
//! Fetch from a ROM table for conversion to BCD.
|
|
#define int2bcd(i) bcdtable[i]
|