User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 397,600 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,704 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser:
Views: 5280 | Replies: 14
Reply
Join Date: Apr 2007
Posts: 5
Reputation: aforarihant19 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aforarihant19 aforarihant19 is offline Offline
Newbie Poster

Re: Need help with 8086 assembly language

  #11  
Apr 27th, 2007
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


tanx buddy .... is it the answer for that question ...hope u dont mind ..and sorry for the troouble
Reply With Quote  
Join Date: Apr 2007
Posts: 1
Reputation: nirjhargarg is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nirjhargarg nirjhargarg is offline Offline
Newbie Poster

Re: Mahima's program doesn't work....

  #12  
Apr 27th, 2007
Hi,

Just tried punching in the source code as listed by mahima, it doesn't work.........pls help...

NG






Originally Posted by zunnur View Post
I am new to Microprocessor 8086. i should submit this assignment by monday evening. Can anybody help me with this question?

Q1 Write an 8086 assembly language program that will compute:

2.0 * log10 X for x = 0.1, 1.0, 10.0, 100.5, 1000.0, and six other values using a loop. All values are in the single-precision (short real) format.


Kindly help me. I am breaking my head like anything
Reply With Quote  
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  
Join Date: Nov 2006
Posts: 99
Reputation: mathematician is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
mathematician mathematician is offline Offline
Junior Poster in Training

Re: Need help with 8086 assembly language

  #14  
Apr 28th, 2007
Actually int 21h function 2 will only display the single ascii character contained in dl. It will not output an entire string, and still less convert a floating point number into a string and then output it.

Beginners in assembly language always think that they are still programming in a high level language. Writing a procedure to convert a floating point number to a string, and then display it, is not a job I would particularly want, and I am not new to assembly language.
Reply With Quote  
Join Date: Apr 2007
Posts: 2
Reputation: Sangita is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Sangita Sangita is offline Offline
Newbie Poster

Re: Need help with 8086 assembly language

  #15  
May 7th, 2007
Thanks a lot :-)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Assembly Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 6:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC