ivp | 9 Feb 07:41
Picon

Re: [PIC] 9 bit binary to digits?

> The PICList.org website has an 8 bit version to do this

How about subtract 100 from the number until the 9th bit is clear,
then use the 8-bit routine to get the rest. Add the number of subtracts
to the 100's digit. That would be a maximum of 4 subtracts, to find
256 - 300, 301 - 400, 401 - 500 and > 501

wbr
--

-- 
http://www.piclist.com PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist


Gmane