div trap

.global _ff
_ff:
movl $0x7fffffff, %eax
movl $-2, %ebx
xorl %ecx, %ecx
xorl %edx, %edx
imull %ebx
ret

.global _fe
_fe:
movl $1, %eax
movl $1, %edx
movl $1, %ebx
divl %ebx
ret
posted @ 2022-05-18 11:31  zJanly  阅读(17)  评论(0编辑  收藏  举报