Re: Euphoria-DOS32-Assembly32

new topic     » goto parent     » topic index » view thread      » older message » newer message

Beaumont wrote.....

>   The crux seems to be the representation of data by Euphoria , in
>  particular ; that of an atom , this doesn't appear to be the same as the
>  IEEE format. Yet the conversion to the appropriate format shouldn't be
>  that difficult ; C does this with type casting , I think.

Forgive me if I've got what you need wrong, but can't you use the euphoria
atom_to_float, float_to_atom functions to get the ieee format you require?

eg

atom your_double_value

atom a_double_value
a_double_value = allocate(8) -- allocate 8 bytes to hold your floating point

your_double_value = 1.23564

-- now poke 8 consecutive memory locations with the ieee representation
-- of the value in your atom
poke(a_double_value,    atom_to_float64(your_double_value)

(hope the above is correct!!)
I would think that once you have your floating point atom poked into
memory you should be able to use your assembly code to get at it.

All the best

Mark

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu