search algorithm for a math mod function (5 mod[2]=1)

Quote:

> Hello everybody

> Does somebody know how to code in asm 80x86 the mathematic mod function ?

> Thank for help.

> Marc.

The DIV instruction doesn't only divide, it leaves the rest of the

division in DX. Just try this.

Stephan

+------------------------------------------------------------------+

| !!! NEW !!! http://www.muc.de/~stephanm (under developement) |

+------------------------------------------------------------------+