This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.INCLUDE Irvine32.inc
FIB_COUNT = 47 ; number of values to generate
fileHandle DWORD ?
filename BYTE "fibonacci.bin",0
array DWORD FIB_COUNT DUP(?)
str1 BYTE "Cannot create file",0dh,0ah,0
bytesWritten DWORD ?
; Generate the array of fib values
; Prepare your ESI and ECX
mov esi, offset array
mov ecx, lengthof array
; Calling generateFibonacci