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 divide 1/2, instead of going to label OddNumber, it returns "Floating point exception". I know 1/2 is a float, but how can I handle it? Thanks.
GDB says "Program received signal SIGFPE, Arithmetic exception." by the way.