| | |
Need help with 8086 assembly language
![]() |
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
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
•
•
Join Date: Apr 2007
Posts: 1
Reputation:
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:
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: 134
Reputation:
Solved Threads: 3
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.
![]() |
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??
| Thread Tools | Search this Thread |





