answersLogoWhite

0

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.
User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you write Ascending order program using 8086 microprocessor?

One many find this answer on YouTube. One also may find out how to write ascending order programs using an 8086 microprocessor by looking at the owners manual.


A C program using dynamic memory allocation to sort n names in ascending order?

Writing a C program that uses dynamic memory allocation to sort names in ascending order is a typical computer science assignment. To write this program, you must be in UNIX.


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


How can you write a c program to display numbers in ascending order in array?

I know how to do this and you need to know how to do this. Why don't you do your best at writing this program and if it does not work then ask for help. You will not learn anything if I give you the answer.


What will be the program to arrange numbers stored in array in ascending order using pointers?

sorry


How do you write polynomials in ascending and descending order?

before and after use an conpair the results


Write an Assembly language program which implements sorting algorithm both ascending and descending order and display those numbers with certain delay say of 5sec between successive displays?

das


Write 0.1 0.01 0.9 and 0.09 in ascending order?

0.01, 0.09, 0.1, 0.9


Can data be stored in ascending order?

Data can be stored in ascending order, descending order or no particular order.


What are the multiples of 18 in ascending order?

The multiples of 18 in ascending order are 12345678


Data can only be stored in ascending order?

Data can be stored in ascending order, descending order or no particular order.


Can Data can only be sorted in ascending order.?

No, it can be sorted either in ascending or descending order.