Please support our Assembly advertiser: Programming Forums
Views: 5857 | Replies: 14
![]() |
•
•
Join Date: Mar 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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
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: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,565
Reputation:
Rep Power: 40
Solved Threads: 977
post the code you are writing. Are you allowed to use the math coprocessor for log and other math functions ?
•
•
Join Date: Apr 2007
Posts: 3
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
If u have any queries, just reply me
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: Apr 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
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
if u get the answer of this question plz mail me...... <email snipped>
Last edited by Ancient Dragon : Apr 28th, 2007 at 3:23 pm. Reason: snipped email
•
•
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
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
if u get the answer of this question plz mail me...... <snipped email>
Last edited by Ancient Dragon : Apr 28th, 2007 at 3:24 pm. Reason: snipped email
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
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
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[/quote]
if u get the answer of this question plz mail me...... <snipped email>
Last edited by Ancient Dragon : Apr 28th, 2007 at 3:24 pm. Reason: snipped email
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
iam new to Microprocessor 8086. i should submit this assignment by 27th /04/2007i 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
if u get the answer of this question plz mail me...... <snipped email> it is urgent...............
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
if u get the answer of this question plz mail me...... <snipped email> it is urgent...............
Last edited by Ancient Dragon : Apr 28th, 2007 at 3:25 pm. Reason: snipped email
•
•
Join Date: Apr 2007
Posts: 3
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
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode