1994-08-05 01:19:12 +00:00
|
|
|
/*
|
2002-12-21 05:11:39 +00:00
|
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
* Public domain.
|
1994-08-05 01:19:12 +00:00
|
|
|
*/
|
|
|
|
|
2001-10-24 20:29:14 +00:00
|
|
|
#include <machine/asm.h>
|
2002-03-23 02:44:19 +00:00
|
|
|
__FBSDID("$FreeBSD$");
|
1994-08-05 01:19:12 +00:00
|
|
|
|
|
|
|
ENTRY(div)
|
2002-12-21 05:11:39 +00:00
|
|
|
pushl %ebx
|
|
|
|
movl 8(%esp),%ebx
|
|
|
|
movl 12(%esp),%eax
|
|
|
|
movl 16(%esp),%ecx
|
|
|
|
cdq
|
|
|
|
idiv %ecx
|
|
|
|
movl %eax,(%ebx)
|
|
|
|
movl %edx,4(%ebx)
|
|
|
|
popl %ebx
|
|
|
|
ret $4
|