My program keeps crashing. In the Visual C++ debugger I see it's crashing at a
div al, bl
instruction, with the exception of "Integer overflow.". Al is 46 and bl is 6 at that point. Does anybody get what the problem is?
Posted on 2001-12-12 04:59:27 by Qweerdy
When you divide by a byte, the dividend is assumed to be in AH AL. Make sure AH is 0. :)
Posted on 2001-12-12 06:35:39 by S/390
Thanks for that! I hadn't noticed it because of the way the debugger told me the instruction was div al,bl while it should be div ax,bl of course (I was staring at opcodes.hlp all this time, can you believe it? :rolleyes: )

Anyway, thanks very much for your reply!
Posted on 2001-12-12 08:37:53 by Qweerdy