Embedded Programs

Friday, 16 September 2016

Program to perform factorial of a number (8051)

MOV DPTR,#1000H
MOVX A,@DPTR
MOV R1,A
MOV A,#01H
LOOP: MOV B,R1
MUL AB
INC DPTR
DJNZ R1,LOOP
END
Posted by Unknown at 23:23
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2016 (15)
    • ►  October (4)
    • ▼  September (11)
      • Program to display the message in 8051
      • Program to perform factorial of a number (8051)
      • Program to perform 16 bit BCD addition in 8051
      • Program to transfer n numbers from port 1 to port ...
      • Program for block transfer from one address to oth...
      • Program to find the sum of 10 numbers stored in th...
      • How to sort n numbers(Bubble sort ) in 8051
      • How to write a Program to perform Fibonacci series...
      • Program to perform maximum of two numbers (8051)
      • How to write a Program to swap two variables in 80...
      • How to Write a Program to perform 8-bit addition,...
Simple theme. Powered by Blogger.