I know that this is possible: for example, I have used the 64 bits divided by 32 bits giving 16 bits on a x86 to build a 128 divided by 64 giving 64 divide. The same principle would apply, of course. I see if I can find the code. Bob Ammerman RAm Systems (high performance, high function, low-level software) ----- Original Message ----- From: D Lloyd To: Sent: Wednesday, July 05, 2000 8:09 AM Subject: [OT]: 32bit by 16bit divide algorithm request (M3822/General) > Hi, > > A request from a colleague of mine: > > > "The Mitsubishi M3822 Group microprocessors are variants of the earlier 6502 > device. The 3822 core features a 16 bit by 8 bit divide operation. I require an > extended divide operation, 32 bits by 16 bits, to give a 16 bit quotient and a > 16 bit remainder. Can this be done by using the built in 16 bit by 8 bit > instruction to both simplify the code from the classic extended divide and to > speed things up?" > > > I also believe he would be interested in a 'non-M3822 specific algorithm', based > around the 16 by 8 divide limitation, to give a 32 by 16 divide . > > Any help would be greatly appreciated. > > Kind regards, > > Dan Lloyd > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]: PIC only [EE]: engineering [OT]: off topic [AD]: advertisements -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]: PIC only [EE]: engineering [OT]: off topic [AD]: advertisements