Originally Posted by falcan
for (a=0; a<=y; a++)
for (b=0; b<=y/2; b++)
for (c=0; c<=y/3; c++)
if ((a + 2*b + 3*c) ==y)
Is this a subroutine or a snippet of main code?
Is y a global variable? Or is y a parameter that was pushed on the stack? Or is y a parameter stored in the EAX register when the code snippet was executed?
Is count a global variable or is it something to be returned on the stack or EAX register? Does count need to be initialized?
Maybe y and count are addresses that were pushed on the stack before this code snippet was run?
Maybe y and count are addresses that were stored in the EAX and EBX registers before this code snippet was run?
BTW If you use CODE tags the program fragment will display the way you intended.