Home
About
Blogs
Home
Mega Menu
Facebook
Random Posts
3/random/post-list
Popular Posts
POWER PLANT ACOUSTICS
March 15, 2014
Math Review Contains information on the mathematical skills and concepts likely to be tested on the GRE General Test
February 02, 2013
March 08, 2012
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