implement the bcdtohex and hexto bcd as a memcpy
here we do not need the bcd code