flat assembler
Message board for the users of flat assembler.

Index > Windows > Float to Ascii

Author
Thread Post new topic Reply to topic
Beowulf



Joined: 10 Jul 2003
Posts: 5
Location: Germany
Beowulf
Does someone has a procedure for Float to Ascii? I Didn't found one in the String Lib of Fresh.

cya
Beowulf
Post 25 Mar 2004, 16:05
View user's profile Send private message ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
You could have a look at the routines in the m32lib from hutch's masm32 package - it's MASM style, but you can of course convert it to fasm (or assemble the .obj once and link with it, if you're not using direct PE output of fasm).
Post 25 Mar 2004, 17:01
View user's profile Send private message Visit poster's website Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Actually such functions does not exist in m32lib but does exist in ray's fpulib which is included in the masm32 package. If I am not wrong, the source code is included so you can take a look...
Post 26 Mar 2004, 13:49
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Really? At least m32lib has ascii to float... or perhaps I just had a bad dream? ^_^
Post 26 Mar 2004, 15:20
View user's profile Send private message Visit poster's website Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Nay I had a bad dream ^_^ You are right... m32lib has ascii to floatingpoints and floating point to ascii. I just missed them out..
Post 27 Mar 2004, 07:30
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Beowulf



Joined: 10 Jul 2003
Posts: 5
Location: Germany
Beowulf
Hi,
does someone know, what "sdword" and "!ZERO?" are in masm32?

cya
Beowulf
Post 27 Mar 2004, 09:42
View user's profile Send private message ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
sdword is "signed dword" - makes a difference in the high-level ".if" support, chooses whether to generate signed or unsigned conditional jumps.

I think stuff like ".UNTIL ZERO?" means "until zero-flag is set" - ie, "dec ecx + jnz loop".
Post 27 Mar 2004, 10:17
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.