Try the http://www.piclist.com code generator by Nikolai Golovchenko for Multiplication and Division by a constant.
See:
See also:
Archive:
Questions:
James Newton answers: Look at the math and logic section of the
instruction set for AND, OR (called IOR),
XOR, ADD, SUBtract, etc..
James Newton answers: See: http://www.piclist.com/techref/microchip/math/radix/index.htm for base conversion routines.
Comments:
file: /Techref/microchip/math/basic.htm, 7KB, , updated: 2019/6/17 13:35, local time: 2020/1/18 01:10,

©2020 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/techref/microchip/math/basic.htm"> PIC Microcontoller Basic Math Methods</A> 
Did you find what you needed? 
PICList 2020 contributors:
o List host: MIT, Site host massmind.org, Top posters @20200118 RussellMc, Bob Blick, Allen Mulvey, David C Brown, Jim, Jason White, Ryan O'Connor, Sean Breheny, Christopher Head, James Cameron, * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. ongoing support is MOST appreciated! * Contributors: Richard Seriani, Sr. 
Welcome to piclist.com! 
.