/* * Written by J.T. Conklin . * Public domain. */ #include __FBSDID("$FreeBSD$"); ENTRY(div) 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