I am having a problem with my loop not function right and I think I have narrowed the problem down to the MACRO I made for reading in integers the ECX register isn't obtaining a value and stays at 0 while EAX get the value of 1, so when I try my loop using the variable declared it falls into the infinite loop. I tested and loops will do that if you make the counter 0.
Here is my MACRO:
mReadInt MACRO intNum:REQ push eax push ecx mov eax, OFFSET intNum mov ecx, SIZEOF intNum call ReadInt pop ecx pop eax ENDM
Here is my loop:
mov ecx, number LP1: mWriteString _string call Crlf LOOP LP1