Kathy Quinlan wrote: > Basically what you do is multiply the two [8-bit] numbers, which > gives a 17 bit result and then use the top 8 bits, if you want to > make life easier, just subtract 1 from one of the numbers and > multiply, then it will always be a 16 bit result. Kat: There's no need to subtract 1 from either number before the multiplication; the product of two 8-bit numbers ALWAYS fits in 16 bits. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body