Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. Identify and choose outcomes to evaluate a training program.

Answered: 1 week ago

Question

6. Conduct a cost-benefit analysis for a training program.

Answered: 1 week ago