could someone point me to some examples of how to convert an asciiz strint into a IEEE floating point number
all the DOCs I can find use floating point to do the conversion and as such are useless for assembly code
programming
I don't care what O/S the examples are for as long as thay are 32 bit flat mode
all the DOCs I can find use floating point to do the conversion and as such are useless for assembly code
programming
I don't care what O/S the examples are for as long as thay are 32 bit flat mode
Dont know exactly, but the fisrt suggestion is look at the assembler out there:
fasm, nasm, yasm
yasm and nasm in C tought...
fasm, nasm, yasm
yasm and nasm in C tought...
thanks for trying but
a C program uses libc to do this
and the olny to get an assembly example
would be to dissasembl libc
then some how find the conversion
this was my first thought after not
finding any thing on the web about it
but I coulden't find a way to disassembl libc
and the bastard disassembler is broken
(the bastard is the name of the dissambler
for linux like IDE disasembler for dos)
a C program uses libc to do this
and the olny to get an assembly example
would be to dissasembl libc
then some how find the conversion
this was my first thought after not
finding any thing on the web about it
but I coulden't find a way to disassembl libc
and the bastard disassembler is broken
(the bastard is the name of the dissambler
for linux like IDE disasembler for dos)
I supose tht fasm can be good ....
I havent watched at the code that nasm uses for the transformattion.....
But yasm Im nearly to sure that dosent used libc ;)... you are refering to something like..... "12.3433" read the string, then pass to a libc funtion like convert to float??? atof????
check this links, I recommend download the source because is more easy to walk the directory tree....
http://www.tortall.net/projects/yasm/browser/branches/SOFTFLOAT/yasm/float/
http://www.tortall.net/projects/yasm/browser/branches/NETLIB_FP_GDTOA/
If I remember correctly, is a library from some other one.... they have used this one for have more portability if Im not wrong... dont remember ;). Also check the readme's because there is some info from where come the lib ;)... or you can try it yourself... dont know exactly how but I have a idea....
I havent watched at the code that nasm uses for the transformattion.....
But yasm Im nearly to sure that dosent used libc ;)... you are refering to something like..... "12.3433" read the string, then pass to a libc funtion like convert to float??? atof????
check this links, I recommend download the source because is more easy to walk the directory tree....
http://www.tortall.net/projects/yasm/browser/branches/SOFTFLOAT/yasm/float/
http://www.tortall.net/projects/yasm/browser/branches/NETLIB_FP_GDTOA/
If I remember correctly, is a library from some other one.... they have used this one for have more portability if Im not wrong... dont remember ;). Also check the readme's because there is some info from where come the lib ;)... or you can try it yourself... dont know exactly how but I have a idea....
rob.rice,
try http://ray.masmcode.com/
Raymond has an excellent tutorial and library of functions, including FLtoA and Ato FL functions using the FPU.
farrier
try http://ray.masmcode.com/
Raymond has an excellent tutorial and library of functions, including FLtoA and Ato FL functions using the FPU.
farrier
rob.rice,
try http://ray.masmcode.com/
Raymond has an excellent tutorial and library of functions, including FLtoA and Ato FL functions using the FPU.
farrier
Got it I'm translating it to fasm the biggest problem I'm haveing is the *.HLP file I dont have acess to a windows
computer so I can't read the help file and don't know IF I have the plain text file right or wether I have clobered
something the code looks pretty easy to port to fasm for the most part all I need to do is replace the high levle
masm built in macros with assembly