answersLogoWhite

0

8086 ALP for Fibonacci

Updated: 10/27/2022
User Avatar

Wiki User

12y ago

Best Answer

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

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 8086 ALP for Fibonacci
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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


What is queue status 8086?

queue of 8086 microprocessor is 6 bits


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 />"; } ?>

Related questions

What is Alp for multiplication of two digit BCD numbers in 8086?

Assembly language programe for multiplication


What is the assembly language program for GCD of two 16 bit unsigned integers using Intel 8086?

alp for lcm of a no


What is a yodelers perch?

alp , as in the mountains


What does ALP mean?

ALP means Australian liberal party ALP means Australian liberal party


Why did Fibonacci think of the Fibonacci code?

There is the Fibonacci sequence but what is the Fibonacci code?


What does ALP stand for in politics?

in politics what do the letters ALP stand for


When was Alp Haydar born?

Alp Haydar was born in 1982.


When was Çetin Alp born?

Çetin Alp was born in 1947.


When did Çetin Alp die?

Çetin Alp died in 2004.


When was Nejat Alp born?

Nejat Alp was born in 1952.


When did Sedat Alp die?

Sedat Alp died in 2006.


When was Sedat Alp born?

Sedat Alp was born in 1913.