Unpacked BCD to 16 bit binary conversion

Drew Vassallo says:

There's been some discussion about using RTCs lately. Typically, they
send/receive in packed BCD. Except for the year, which is 0-99, all of the
other variables are within 0-64 BCD.

After briefly searching the PICLIST archives, I couldn't really find any
snippets that weren't overkill for this purpose, so I made my own. These
are more specific to RTC time conversion and have reduced instruction counts
over the "standard" code fragments. If you convert your hours to 12-hour
format instead of the 24-hour output format of the RTC, you can use the obvious:

If you are that way about intellectual property rights, why post this? If
someone uses it, they are violating your rights, correct? So then why would
they want to look at it?

I'm not sure what you are referring to... I'm not against anyone useing
this code... it is publicly available... I hope it helps lots of people with
their projects or products. I DO object to people RIPPING my site, copying
the entire thing whether they need each page or not, and thereby running
up my hosting bill. I also object to people not participating with feedback,
improved routines, comments, questions and criticisms and the riped copies
of the site do not promote the use of the forms for feedback to this sever
since they are not on this server anymore. The authors of this code are shareing
it with the understanding that it will be improved, commented, etc... and
that the changes will be again shared. Keeping one central site with the
feedback forms helps to make that happen. Finally, I REALLY object to people
takeing the code without ever thanking the authors, crediting the authors,
or appreciating what they have done. If you use this code, at least use the
forms to say "thanks!"

After you find an appropriate page, you are invited to
your
to this massmind site! (posts will be visible only to you before review)
Just type in the box and press the Post button.
(HTML welcomed, but not the <A tag:
Instead, use the link box to link to another page.
A tutorial is availableMembers can
login
to post directly, become page editors, and be credited for their posts.

Link? Put it here:
if you want a response,
please enter your email address:
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.