User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 391,862 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 3,630 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: 2180 | Replies: 0
Reply
Join Date: Apr 2005
Posts: 1
Reputation: stebel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
stebel stebel is offline Offline
Newbie Poster

FPU + external C file - how to return double

  #1  
Apr 20th, 2005
Hi

I'm working on a piece of assembly procedure that would enable me to return a double value (generated in asm module) to C code.

Up to now never produced such a code, so would be grateful if you could assist me a bit. I know that I should leave the value in st(0)

currently wrote a piece of C :

#include <stdio.h>

extern double test(void) ;

void main ( void )
{
double p ;
p = test () ;
printf ( "The num is %f \n", p ) ;
}

When I write and leave purre integer there's no problem. But how to leave 64bit value in ST ?

I start with

finit
fld... and here comes the problem

thanks for any assistance
Stebel.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Assembly Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 6:40 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC