•
•
•
•
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
![]() |
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
.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
•
•
Join Date: Apr 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
Just tried punching in the source code as listed by mahima, it doesn't work.........pls help...
NG
Just tried punching in the source code as listed by mahima, it doesn't work.........pls help...
NG
•
•
•
•
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
•
•
Join Date: Apr 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
•
•
•
•
.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
•
•
Join Date: Nov 2006
Posts: 99
Reputation:
Rep Power: 2
Solved Threads: 1
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
Similar Threads
- Where can i learn about assembly language (Assembly)
- Using Assembly Language in .NET? (ASP.NET)
- Introduction to 80 x 86 Assembly Language and Computer Architecture - no CD - help (Assembly)
- machine/assembly language, syntax error (C++)
Other Threads in the Assembly Forum
- Previous Thread: c++/ assembly recursive troubles
- Next Thread: How could I break an infinite loop??


Linear Mode