Code:
INCLUDE C:/Irvine/Irvine32.inc .data counter DWORD 12 int1 DWORD 0d int2 DWORD 1d nextNum DWORD ? .code main PROC mov eax,int1 ; call DumpRegs ; showing F0 mov eax,int2 ; call DumpRegs ; showing F1 mov ecx,11 ; setting the amount of loop L1: mov eax,int1 ; eax = 0 mov ebx,int2 ; ebx = 1 add eax,ebx ; eax = 1 + 0 mov nextNum,eax ; nextNum = eax = 1 mov int1,ebx ; eax = 1 mov int2,eax ; ebx = 1 call DumpRegs ; show the registers loop L1 exit main ENDP END main


