A piece of my code in assembly x8086 is consistently entering an infinite loop inside the div call:
1. xor bx, bx
2. mov bx, 0002h
3. div bx
the infinite loop occurs in line 3 it just jumps into this code location:
it jumps into cs:1061 then to 1065 then back to div bx and so on.
how can I fix this? Thanks