.file "div_small.S"1/*---------------------------------------------------------------------------+2| div_small.S |3| |4| Divide a 64 bit integer by a 32 bit integer & return remainder. |5| |6| Copyright (C) 1992,1995 |7| W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |8| Australia. E-mail [email protected] |9| |10| |11+---------------------------------------------------------------------------*/1213/*---------------------------------------------------------------------------+14| unsigned long FPU_div_small(unsigned long long *x, unsigned long y) |15+---------------------------------------------------------------------------*/1617#include "fpu_emu.h"1819.text20ENTRY(FPU_div_small)21pushl %ebp22movl %esp,%ebp2324pushl %esi2526movl PARAM1,%esi /* pointer to num */27movl PARAM2,%ecx /* The denominator */2829movl 4(%esi),%eax /* Get the current num msw */30xorl %edx,%edx31divl %ecx3233movl %eax,4(%esi)3435movl (%esi),%eax /* Get the num lsw */36divl %ecx3738movl %eax,(%esi)3940movl %edx,%eax /* Return the remainder in eax */4142popl %esi4344leave45ret46474849