Question
The well-known Fibonacci number series, reputedly discovered by Leonardo of Pisa around the year 1200, has been valued for centuries for its universal qualities by
The well-known Fibonacci number series, reputedly discovered by Leonardo of Pisa around the year 1200, has been valued for centuries for its universal qualities by artists, mathematicians, and composers. Each number in the series after the number 1 is the sum of the two previous numbers:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55 . . .
Write a program that generates and displays the first 24 numbers in the Fibonacci series, beginning with 1 and ending with 46,368.
This is my code. But the screen just shows blank space but not the integer. Can somebody help me to fix that?
title Assignment 1 (Assignment.asm)
INCLUDELIB irvine.lib
.model small
.stack 100h
.data
num dw 1
.code
extrn writeint:proc
main proc
mov ax,1
mov cx,24
start:
add ax,num
mov bx,10
call writeInt
xchg ax,num
loop start
main endp
end main
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started