For Programmers: Free Programming Magazines  


Home > Archive > ASM370 > March 2004 > Binary/Hexadecimal floating point









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Binary/Hexadecimal floating point
Pierre Fichaud

2004-03-19, 8:28 pm

How in a macro can one distinguish between binary and hexadecimal
floating point? The type attribute returns the same value for both EB
and EH and so does the length attribute. How can a macro tell the
difference?

TIA. Pierre.

Tom Grieve

2004-03-19, 8:28 pm

Pierre,
There doesn't appear to be a direct method for doing this. However, I notice
that the scaling attribute S' is always zero for binary floating point
constants. So, as long as you specify a non-zero scale modifier on your hex
fp constants, you can do it. Yuck, it's horrible. Try to rethink what you
want to achieve.

Tom Grieve

"Pierre Fichaud" <matrac@cam.org> wrote in message
news:3FB12438.F9633F81@cam.org...
> How in a macro can one distinguish between binary and hexadecimal
> floating point? The type attribute returns the same value for both EB
> and EH and so does the length attribute. How can a macro tell the
> difference?
>
> TIA. Pierre.
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com