I have this code:
.MODEL SMALL
.DATA
.CODE
.STARTUP
MOV AX, 9801d
MOV BH, 0d
MOV BL, 10d
DIV BL
END
In summary, it divides by 10 what is present in the AX register, it works beautifully for some values, but for others, for example 9801 it doesn't work, when I run it it goes into a loop, while when I run the debugger it returns the following error:
divide error - overflow.
to manually process this error,
change address of INT 0 in interrupt vector table.
I promise I'm new, so sorry if the error is due to a lack of me, thanks in advance