2080.1 2

Microprocessor2080.110 marksSimple sequence programs

Write an Assembly program for calculating the factorial of a number using 8085 microprocessor.

Write an Assembly program for calculating the factorial of a number using 8085 microprocessor.[10]

The factorial of a number N is calculated as: N! = N × (N-1) × (N-2) × ... × 2 × 1 For example: 5! = 5 × 4 × 3 × 2 × 1 = 120 --- 1. Load the number N from memory 2. Initialize a result register to 1 (since 0! = 1 and 1! = 1) 3. Multiply result by N, then decrement N 4. Repeat until N becomes 1 5....

Up nextDraw a block diagram of 80286 microprocessor and explain.