News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Float point in 64bit

Started by GUAN DE DIO, June 15, 2010, 07:39:26 AM

Previous topic - Next topic

GUAN DE DIO

Hi everybody,

     Working on GDI+ I need to make some floating operation to draw somethings.

     Currently I need to make the translation of Polar coordinate to Cartesian Coordinates.  In 32bits I used the FPU instruction, but in 64bit I don't know what is wrong in my code.

      I try to check it using IDA 5.2 Debugger and my surprise when the instructions :
    -  FINIT
    -  FLD1
     
       didn't  do anything, the ST0 register is always set to 0.0

    I miss something?

   I'm working with MASM64.

Thanks in advance,
GUAN

qWord

Quote from: GUAN DE DIO on June 15, 2010, 07:39:26 AM
      I try to check it using IDA 5.2 Debugger and my surprise when the instructions :
    -  FINIT
    -  FLD1
     
       didn't  do anything, the ST0 register is always set to 0.0
mainly a problem by IDA.
FPU in a trice: SmplMath
It's that simple!

GUAN DE DIO


   I have used windbg and all is right now.

  But, is there another debugger for 64bits more frendly?

Thanks,
GUAN


D.F.

Quote from: GUAN DE DIO on June 18, 2010, 06:45:53 AM
I have used windbg and all is right now.
But, is there another debugger for 64bits more frendly?
FDBG - fdbg for AMD64 is assembler level debugger for user-mode (ring3) binary applications, running in long mode (64-bit).

GregL

Visual C++ 2008 or 2010 debugger, even the Express Edition debugs 64-bit (on 64-bit OS).