Home
About
Blogs
Home
Mega Menu
Facebook
Random Posts
3/random/post-list
Popular Posts
Electrical Cable/Wire Sizing
October 15, 2019
Contactor Inner Views
March 10, 2021
June 24, 2013
Contact form
Name
Email
*
Message
*
Home
Dhruvang Suthar
March 08, 2012
Program to generate Fibonacci number
Statement
:
Write an assembly language program to generate fibonacci number.
Source program :
MVI D, COUNT
: Initialize counter
MVI B, 00
: Initialize variable to store previous number
MVI C, 01
: Initialize variable to store current number
MOV A, B
:[Add two numbers]
BACK: ADD C
:[Add two numbers]
MOV B, C
: Current number is now previous number
MOV C, A
: Save result as a new current number
DCR D
: Decrement count
JNZ BACK
: if count 0 go to BACK
HLT
: Stop.
Post a Comment
0 Comments
Social Plugin
Certificate of Completion
Certificate No.CERT001561786-EMI
🇮🇳Welcome To My Blogs.🇮🇳
🥇BE-Electrical🥈 PGDM-Marketing. 🥉Data Scientists. 🏅MEP-Electrical.
Total Pageviews
This Page is a little effort to make you Sharing of some own materials .This is just a Kick-Start to make the aware of Practical World !!! Best of luck.-DHRUVANG SUTHAR
Close Menu
0 Comments