English
Assembler Forum

DoublePrecision Floatingpoint Operations the FPU in X4-ASM benefit

 

p.specht


CLS
set("AsmMode",0)
ASM "KREISFLAECHEa2e", 2
MOV EAX,par1
MOV EBX,par2
FLD QWORD PTR [EAX]
FLD ST
FMUL
FLDPI
FMUL
FSTP QWORD PTR [EBX]
MOV EAX,0//success
ENDASM
Program:
set("decimals",17)
declare Ergeb!
var R!=2.000000000000002
Print " Error Code (0=Kein Error): ";KREISFLAECHEa2e(addr(R!),addr(Ergeb!))

if Ergeb!=2.000000000000002^2*Pi():print "\n ERFOLG - Profanvariable directly with Result loaded!\n"

    print " R^2*Pi() with R=2.000000000000002 :";Ergeb!
    else:print "  ERROR! LEIDER KEIN ERFOLG! "
    endif:waitinput:end
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/24/21  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.038 Views

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


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