My program's supposed to perform division by using subtraction. However, I'm getting nonsense results as output. Could someone help me with my procedure and the loop within? Thank you.
div proc pushad mov ecx,firstInt mov ebx,0 subtracting: sub ebx,secondInt loop subtracting mov divResult,ebx popad ret divt endp