cancel
Showing results for 
Search instead for 
Did you mean: 

asm Math routines required

brian4
Associate II
Posted on March 01, 2004 at 10:15

asm Math routines required

4 REPLIES 4
brian4
Associate II
Posted on March 27, 2003 at 09:59

Where can I download some basic math routines in assembler. The ST7 download lib seems only to be C.

I want to divide a 16 bit number by a 8 bit number
shreya
Associate II
Posted on March 27, 2003 at 10:35

The application note AN1039 does have some math routines in assembly(including division) though not 16-bit by 8-bit division.

mick1
Associate
Posted on March 01, 2004 at 07:33

Quote:

On 2003-03-27 14:29, BrianM wrote:

Where can I download some basic math routines in assembler. The ST7 download lib seems only to be C.

I want to divide a 16 bit number by a 8 bit number

Go to the Micro chip web site down load there then port em to ST7 should not be to hard.

marco32
Associate II
Posted on March 01, 2004 at 10:15

I attached an asm file, which contain a long by word dividement.

(32/16) So you can change it to a smaller byte.

________________

Attachments :

Maths.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0HY&d=%2Fa%2F0X0000000bWc%2F9WU2s7vYUmuKysWmMN3Zmi2YrtR.nX.AfMn9pC7lDw0&asPdf=false