mov eax, 0x01
mov ecx, 0x02
div ecx ; Divide AX/CX, saves remainder in DX
cmp dx, 0
je OddNumber
int 80h
When I try to split 1/2, instead of calling OddNumber, it returns a Floating Point Exception. I know 1/2 is floating, but how can I handle this? Thank.
GDB says: "Received SIGFPE signal, arithmetic exception." by the way.
source
share