Code: Select all
XOR eax,eax
MOV ebx,1
XOR ecx,ecx
!_1:
INC ecx
ADD eax,ebx
XCHG eax,ebx
CMP ecx,5
JL _1
Code: Select all
XOR eax,eax
MOV ebx,1
XOR ecx,ecx
!_1:
INC ecx
ADD eax,ebx
XCHG eax,ebx
CMP ecx,5
JL _1
Code: Select all
Global result
DisableDebugger
XOR eax,eax
MOV ebx,1
MOV ecx, 5
!_1:
XADD ebx, eax
DEC ecx
JNZ _1
MOV dword[v_result], ebx
EnableDebugger
Debug result
If I understand correctly should return the n-th number in the fibonacci's serie.Fluid Byte wrote:What is it supposed to do?