Below is what I have found in the book but I don't know how to get the first 21 members:
INCLUDE Irvine32.inc
.data
fibonacci DWORD 100 dup (0)
.code
main PROC
mov edx,offset fibonacci
mov eax,1
mov ebx,1
mov ecx,49
@@:
mov DWORD PTR [edx],eax
mov DWORD PTR [edx+4],ebx
add eax,ebx
add ebx,eax
add edx,8
sub ecx,1
jnz @B
call DumpRegs
exit
main ENDP
END main
Main Topics
Browse All Topics





by: MacroLandPosted on 2007-02-25 at 01:53:38ID: 18604587
I think you better check iterative fibonacci algorithm which will be more easier to handle with Assembly language