1. i need to convert a decimal string to hexa decimal... i found a couple of tools that does this job but no decimal to float and a decimal to quadword or float/8bytes. is there any such tool? if none, what api's do i use to achieve this?

2. is there anyway that i can convert an instruction to hexadecimal... for example:
jmp 0043989h and convert it to hexadecimal...
Posted on 2003-10-08 09:47:29 by Ni?o
1) Have a look at atodw and dwtoa in the masm.lib (Under masm\help\ there's the helpfile for the masm.lib file)

2) ??? I'd say compile the program :) and have a look at the bytes generated.
Posted on 2003-10-08 10:18:43 by JimmyClif
1) look into ray's fpulib if i am not wrong.
2) Use an assembler
Posted on 2003-10-08 10:25:59 by roticv
Misread the first question :)

I saw an fpu-to-ascii somewhere tho... I suggest opening the sources for vKim's Debug macros. NaN wrote an FPU dumper which displays all registers as ASCII to the debug window. I once tried to translate them to another syntax but got stuck while translating parts of that proc (It did work but crashed and I couldn't find the error :-/) - -
Posted on 2003-10-08 12:15:16 by JimmyClif
The latest version of the fpulib suggested by roticv is at the end of the following thread:

The only difference with your request if that the library functions are all based on REAL10 floating point data.

However, if you strictly need to convert decimal strings to REAL8 with the FpuAtoFL function, leave the result on the FPU and store it yourself in a REAL8 variable.

Or, modify the source code of that function to suit your needs. (The source code for each function and a Help file are part of the zipped package.)

Posted on 2003-10-08 23:34:16 by Raymond