/* * Written by J.T. Conklin . * Public domain. */ #include "SYS.h" ENTRY(div) movl 4(%esp),%eax movl 8(%esp),%ecx cdq idiv %ecx movl %eax,4(%esp) movl %edx,8(%esp) ret END_STRONG(div)