English
Forum

Why smears these demonstration ex?

 

funkheld
These nProc is a demonstration of XPSE.
greeting
 {$CLEQ}
Declare  b!,c!
b!=3.14
c!=ArcSin2(b!)
End

nProc ArcSin2

    Parameters a!
    //Formel which under umgesetzt becomes: arctan(a!/Sqrt(-a!*a!+1.0))
    mov eax,addr(a!)
    push eax
    fld qword ptr [eax]
    fmul qword ptr [eax]
    fsubr qword ptr __xeTF_00//__xeTF_00 Constant for 0.0
    fadd qword ptr __xeTF_01//__xeTF_00 Constant for 1.0
    fsqrt
    fdivr qword ptr [eax]
    fld1
    fpatan
    pop eax
    fstp qword ptr [eax]
    return a!

endproc

 
11/30/14  
 



have I well something overlooking, durchschaue I now not attempt.

what very GEHTS you really? like Fließkommaoperationen in Assembler write?
 
11/30/14  
 




funkheld
Yes..., the would like I.

greeting
 
12/01/14  
 



Habs not from whom eyes verlogen, look once in a while drüber what lying could.
 
12/02/14  
 



so ists rather:
CompileMarkSeparation
nProc ArcSin2

    Parameters a!
    //Formel welche unten umgesetzt wird: arctan(a!/Sqrt(-a!*a!+1.0))
    mov eax,addr(a!)
    finit
    fld qword ptr [eax]
    fmul qword ptr [eax]
    fsubr qword ptr __xeTF_00//__xeTF_00 Konstante für 0.0
    fadd qword ptr __xeTF_01//__xeTF_00 Konstante für 1.0
    fsqrt
    fdivr qword ptr [eax]
    fld1
    fpatan
    fstp qword ptr [eax]
    wait
    return a!

endproc


Funktionierts?
 
12/02/14  
 




Michael
W.
The umgesetzte Formel is:
arctan(a / Sqrt(0.0 - (a * a) + 1.0))

less a get one through "fchs" zustande.
Pi Gibts through "fldpi"

fountain nenn' so did i yet: [...] 
 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
12/03/14  
 




Michael
W.

CompileMarkSeparation
nProc ArcSin2

    Parameters a!
    //Formel welche unten umgesetzt wird: arctan(a!/Sqrt(-a!*a!+1.0))
    mov eax,addr(a!)
    finit
    fld qword ptr [eax]
    // ergibt: a
    fchs
    // ergibt: -a
    fmul qword ptr [eax]
    // ergibt: -a * a
    fld1
    // ergibt: 1.0  ---  -a * a
    faddp st(1)
    // ergibt: -a * a + 1.0
    fsqrt
    // ergibt: Sqrt(-a * a + 1.0)
    fdivr qword ptr [eax]
    // ergibt: a / Sqrt(-a * a + 1.0)
    fld1
    // ergibt: 1.0  ---  a / Sqrt(-a * a + 1.0)
    fpatan
    // ergibt: ArcTan(a / Sqrt(-a * a + 1.0))
    fwait
    // fwait  statt wait
    fstp qword ptr [eax]
    return a!

endproc

 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
12/03/14  
 



even if one:

{$pushkeyword fchs,faddp,st1}

writes circa these Keywords as "bekannt" To deklarieren,
then bleats jwasm:

Objektcode: TEST.asm(166) : Error A2054: Invalid instruction o
perands

warning: Error in the Assembler.


can now but many causes having.
 
12/03/14  
 




Michael
W.
Hauptursache is well, the it in the Original St(1) hot must. there I had me from the Farbgebung well into Crazy lead let.
 
XProfan X3
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
12/03/14  
 




funkheld
Jup thanks.

[15:11:11] warning: undeklariert : FADDP
[15:14:13] Naehe: ~14, 'FADDP ST1'

somehow go The as Variable abused of XPSE.

greeting
 
12/03/14  
 




funkheld
These runs now through without Error.
but i see well the Printen not XPSE.

it'll geprintet : Nan

Thank you.
greeting
CompileMarkSeparation
 {$CLEQ}
Declare  a!,b!
a!=3.14
b!=ArcSin2(a!)
Print b!
WaitInput
End

nProc ArcSin2

    Parameters a!
    //Formel welche unten umgesetzt wird: arctan(a!/Sqrt(-a!*a!+1.0))
    mov eax,addr(a!)
    finit
    fld qword ptr [eax]
    fmul qword ptr [eax]
    fsubr qword ptr __xeTF_00//__xeTF_00 Konstante für 0.0
    fadd qword ptr __xeTF_01//__xeTF_00 Konstante für 1.0
    fsqrt
    fdivr qword ptr [eax]
    fld1
    fpatan
    fstp qword ptr [eax]
    wait
    return a!

endproc

 
12/03/14  
 



the NaN hardship a number gives XProfan from vlt. with "ungültigen?" Fließkommawerten.
 
12/03/14  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

22.843 Views

Untitledvor 0 min.
Gast.0815 vor 11 Tagen
funkheld12/30/21
p.specht09/19/18
E.T.04/12/18
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie