0% found this document useful (0 votes)
15 views

Fib On A Chi

This document is a lab report presenting the objective to write a program to calculate the Fibonacci series on an 8086 microprocessor. The program includes header files, declares variables like first_number initialized to 1, and stock initialized to 100. The main code block moves first_number to a register, prints the intro text, and initial Fibonacci numbers 0 and 1. It then uses a CX loop counter set to 10 to iteratively add the previous two numbers, store in first_number, and print each term, outputting the first 10 Fibonacci numbers.

Uploaded by

Omair Altaf
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Fib On A Chi

This document is a lab report presenting the objective to write a program to calculate the Fibonacci series on an 8086 microprocessor. The program includes header files, declares variables like first_number initialized to 1, and stock initialized to 100. The main code block moves first_number to a register, prints the intro text, and initial Fibonacci numbers 0 and 1. It then uses a CX loop counter set to 10 to iteratively add the previous two numbers, store in first_number, and print each term, outputting the first 10 Fibonacci numbers.

Uploaded by

Omair Altaf
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Computei 0iganization & Aichitectuie

Lab Repoit 8

Piesenteu To:
Sii Babai Sana

repared 8y
nC Muhammad Saad
nC Cmalr AlLaf
nC Sheharyar naseer
Ub|ective:
wtlte o ptoqtom to colcolote ptlot llboooccl setles lo emolotot
8086

[Ve:


inc/ude emu808inc
mode/ smo//
stock 100

doto
first_numb db 1

code
moin proc
mov oxQdoto
mov dsox
Printn 1his is the fibbonochi series
mov o/2
printn 0
printn 1
printn 1
printn 2
mov cx10


fix
odd o/ first_numb
mov b/ o/
4uu b/ l0h
MOv oh02
MOv d/b/
lN1 21h
xchq o/ first_numb


printn

/oop fix

MOv ox4c00h
lN1 21h

moin endp
end moin

You might also like