8 extern void __uitobcd (unsigned int v
, unsigned char r
[3]);
11 static const unsigned char u[3] = { 0x##v % 0x100, (0x##v / 0x100) % 0x100, (0x##v / 0x10000) % 0x100 }; \
12 unsigned char r[3] = { 0xff, 0xff, 0xff }; \
14 unsigned long bcd = r[2] * 0x10000 + r[1] * 0x100 + r[0]; \
15 ASSERT ((#v,(r[0]==u[0]&&r[1]==u[1]&&r[2]==u[2]))); \
18 void test__uitobcd (void)
20 #if defined(__SDCC_z80)