Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Fibonacci Series in ASM code

alzenyalzeny Member Posts: 1
Does anyone out there have the code for the Fibonacci number series. The fibonacci series is bascally each number in the series after the number 1 is the sum of the tow previous numbers.

Any help would be greatly appreciated.

Comments

  • Sephiroth2Sephiroth2 Member Posts: 423
    : Does anyone out there have the code for the Fibonacci number series. The fibonacci series is bascally each number in the series after the number 1 is the sum of the tow previous numbers.
    :
    : Any help would be greatly appreciated.
    :
    I don't see the problem....?

    mov cx,20
    mov ax,1
    mov ebx,65536
    the_loop:
    add ax,bx
    mov bx,ax
    rol bx,16
    ; do something with the value here
    loop the_loop

Sign In or Register to comment.