See http://www.piclist.org/techref/microchip/math/scale/index.htm Good stuff there! Harold On Fri, 1 Feb 2002 20:50:46 -0200 Edson Brusque writes: > Hello, > > I need to multiply a byte by another byte and then divide this > result by > 255, like x = y * z / 255. > > At this moment, I'm using CCS-PICC built-in maths, but it's very > inneficient. The execution time for this calculation is about 1200 > instructions(!). > > Someone have an idea of a very fast math function in assembly to > make > this? > > Best regards, > > Brusque > > ----------------------------------- > Edson Brusque > Research and Development > C.I.Tronics Lighting Designers Ltda > Blumenau - SC - Brazil > www.citronics.com.br > Say NO to HTML mail > ----------------------------------- > > -- > http://www.piclist.com hint: PICList Posts must start with ONE > topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: > ->Ads > > FCC Rules Online at http://hallikainen.com/FccRules Lighting control for theatre and television at http://www.dovesystems.com ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads