This program is commented very well and uses a very simple, easy to understand coding style. We owe a BIG THANK YOU to 212 over at hagshouse.com for so graciously donating his time and this program to us.
Program for P32
This program does basically the same thing, but is programmed a little differently.
Program for P41