Skip to content Skip to sidebar Skip to footer

ASM X86 Integer Overflow

GetLCM PROC tryAgain: mov bx, 0 inc Multiple mov ax, UserInputNum1 ;Move UserInputNum1 to the 16 bit Register mov bx, Multiple div bx

Solution 1:

xor dx, dx somewhere before your div


Solution 2:

Read up on the div instruction again. What is divided by what? You are missing to set one of the operands to some sensible value.


Post a Comment for "ASM X86 Integer Overflow"