How would I calculate the first 12 values in the Fibonacci number sequence and be able to place it in EAX reg. and display calling DumpRegs? Using Indirect addressing I know I n
You can make a loop like this:
mov ecx,12 your_label: ; your code loop your_label
The loop instruction decrements ecx and jumps to the specified label unless ecx is equal to zero. You could also construct the same loop like this:
ecx
mov ecx,12 your_label: ; your code dec ecx jnz your_label