umoddi3.s - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
umoddi3.s (280B)
---
1 .file "umoddi3.s"
2
3 .text
4 .globl __umoddi3
5 __umoddi3:
6 pushl %ebp
7 movl %esp,%ebp
8 addl $-16,%esp
9
10 movl 8(%ebp),%ecx
11 movl %ecx,-16(%ebp)
12 movl 16(%ebp),%ecx
13 movl %ecx,-8(%ebp)
14 movl -16(%ebp),%eax
15 xor %edx,%edx
16 divl -8(%ebp)
17 movl %edx,%eax
18 movl %ebp,%esp
19 popl %ebp
20 ret