RSS Forums RSS
Please support our Assembly advertiser: Programming Forums

Need help with 8086 assembly language

Join Date: Apr 2007
Posts: 2
Reputation: Saran_57 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Saran_57 Saran_57 is offline Offline
Newbie Poster

Help Re: Need help with 8086 assembly language

  #13  
Apr 28th, 2007
Pls Help me in doing this?

Write a program that will input a positive integer and print out the list of its prime factors. Comment on the run time of your algorithm and state any limitations that you have imposed on the input integers



Originally Posted by mmahima2002 View Post
.data
short REAL4 0.1,1.0,10.0, 100.5, 1000.0, 400.0, 40.5, 60.6,8.9,10.1
count db 0ah
.code
Lea si, short
Mov cl, count
Loop1:
;moving the element to to ax register
Mov ax, [si]
;Push ax into first position
fld ax
;This instruction is used to find the logarithm of the top most element of the stack
FLDLG2
;Pop the element from the stack
Fstp dl
;displaying the value
Mov ah,02h
Int 21h
Loop Loop1

Mov ah,4ch
Int 21h

If u have any queries, just reply me
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:51 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC