Skip to main content
Visitor II
March 1, 2004
Question

asm Math routines required

  • March 1, 2004
  • 4 replies
  • 828 views
Posted on March 01, 2004 at 10:15

asm Math routines required

    This topic has been closed for replies.

    4 replies

    brian4Author
    Visitor II
    March 27, 2003
    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
    Visitor II
    March 27, 2003
    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.

    Visitor II
    March 1, 2004
    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.

    Visitor II
    March 1, 2004
    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