my project I'm supposed to create a program that fills an array with an x number of fibbonacci numbers. In this case it's 47. I've got the programming set to get it the numbers etc, I just can't seem to get them into my array. Any help would be great as I'm sure i'm just off on my syntax. I'm debugging it in visual studio, so I guess that's masm? Thanks in advance.
.386
.model flat,stdcall
.stack 4096
ExitProcess proto,dwExitCode:dword
.data
fibba DWORD 47 DUP(?)
.code
main proc
mov eax,1 ;current number
mov ebx,0 ;last number in array
mov edi,0 ;array location
mov ecx,LENGTHOF fibba ;how many loops
L1:
mov [fibba+edi] ,eax ;move current into array
push eax ;move current into stack
add eax, ebx ;adding previous to current
pop ebx ;pulling last number used off stack
inc edi ;incrementing array location
loop L1
invoke ExitProcess,0
main endp
end main