answersLogoWhite

0

SECTION .data

x: dd 6

f: dd 0

SECTION .text

global main

main: nop

mov ebx, x

mov eax, [ebx]

call fibo

mov [f], edx

(mov eax, 1

mov ebx, 0

int 0x80)

*****lo q está entre parentesis () puede ser sustituido por un "ret"

fibo: cmp eax, 2

jge comp

mov edx, 1

ret

comp: dec eax

push eax

call Fibonacci

pop eax

dec eax

push edx

call Fibonacci

pop eax

add edx, eax

ret

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

What is queue status 8086?

queue of 8086 microprocessor is 6 bits


What is Fibonacci heaps algorithm?

fibonacci heap is a heap


Fibbomacci series using recursion shell programming?

Here is a good answer for recursion Fibonacci series. #include <stdio.h> #include <conio.h> long Fibonacci(long n); int main() { long r, n,i; printf("Enter the value of n: "); scanf("%ld",&n); for(i=0;i<=n;i++) { printf(" Fibonacci(%ld)= %ld\n", i,Fibonacci(i)); } getch(); return 0; } long Fibonacci(long n) { if(n==0 n==1) return n; else { return (Fibonacci(n-1)+Fibonacci(n-2)); } } for n=5; Output: Fibonacci(0)=0 Fibonacci(1)=1 Fibonacci(2)=1 Fibonacci(3)=2 Fibonacci(4)=3 Fibonacci(5)=5


8086 is risc or cisc based architecture?

The 8086/8088 is a CISC based architecture.


Write a program to print the Fibonacci series in php upto input value using recursive function?

The Fibonacci sequence uses recursion to derive answers. It is defined as: F0 = 0 F1 = 1 Fn = F(n - 1) + F(n -2) To have this sequence printed by a php script use the following: function fibonacci($n) { if($n 1) return 1; //F1 else return fibonacci($n - 1) + fibonacci($n - 2); //Fn } This recursive function will print out the Fibonacci number for the integer n. To make it print out all the numbers in a particular set add this to your script. for($i = 0; $i < 15; $i++) { echo fibonacci($i) . "<br />"; } So your final result would look like. <?php function fibonacci($n) { if($n 1) return 1; else return fibonacci($n - 1) + fibonacci($n - 2); } for($i = 0; $i < 15; $i++) { echo fibonacci($i) . "<br />"; } ?>