Need help with 8086 assembly language

Reply

Join Date: Apr 2007
Posts: 5
Reputation: aforarihant19 is an unknown quantity at this point 
Solved Threads: 0
aforarihant19 aforarihant19 is offline Offline
Newbie Poster

Re: Need help with 8086 assembly language

 
0
  #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 Quick reply to this message  
Join Date: Apr 2007
Posts: 1
Reputation: nirjhargarg is an unknown quantity at this point 
Solved Threads: 0
nirjhargarg nirjhargarg is offline Offline
Newbie Poster

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

 
0
  #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 Quick reply to this message  
Join Date: Apr 2007
Posts: 2
Reputation: Saran_57 is an unknown quantity at this point 
Solved Threads: 0
Saran_57 Saran_57 is offline Offline
Newbie Poster

Re: Need help with 8086 assembly language

 
0
  #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 Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: Need help with 8086 assembly language

 
0
  #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 Quick reply to this message  
Join Date: Apr 2007
Posts: 2
Reputation: Sangita is an unknown quantity at this point 
Solved Threads: 0
Sangita Sangita is offline Offline
Newbie Poster

Re: Need help with 8086 assembly language

 
0
  #15
May 7th, 2007
Thanks a lot :-)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC