I don't know what causes this... I can not imagine. I get divide by 0 errors all the damn time, I can not for the life of me figure out why. I almost never use the division instruction(which is problematic as you might imagine!) because every time I do I get a divide by zero error.....
Now I don't get it ALL the time. For example if the first instruction in my program is:
mov ax, 1439
mov bx, 16
div bx
it will work
SOMETIMES I can even do:
mov ax, 1439
mov bx, 16
div bx
div bx
dix bx
and the error won't come till the third div bx. If I put this code in a procedure far down in my program, a divide by zero error is often caused by the first division.... for the love of all that is good and holy I can NOT figure this out, any ideas? Is this my computer not having enough memory? That makes no sense... WHAT THE HELL IS CAUSING THIS?
Now I don't get it ALL the time. For example if the first instruction in my program is:
mov ax, 1439
mov bx, 16
div bx
it will work
SOMETIMES I can even do:
mov ax, 1439
mov bx, 16
div bx
div bx
dix bx
and the error won't come till the third div bx. If I put this code in a procedure far down in my program, a divide by zero error is often caused by the first division.... for the love of all that is good and holy I can NOT figure this out, any ideas? Is this my computer not having enough memory? That makes no sense... WHAT THE HELL IS CAUSING THIS?
Comment