home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,400 of 4,675   
   R.Wieser to The idea is that I would be able to   
   Re: FPU (x87) code debugging.   
   08 Aug 21 12:47:11   
   
   From: address@nospicedham.not.available   
      
   Robert,   
      
   > You still haven't told us what OS (DOS, Windoze, Linux) or CPU (32/64 bit)   
   > you're running this code on....   
      
   My apologies, I did not think that it would matter (still don't, but ...).   
      
   The OS is Windows, XP pro sp3, 32 bit.   The used environment is Borlands   
   Tasm v5.2 (Assembler).   
      
   > David Lindauer's GRDB (DOS) can show the contents of FPU registers   
      
   The idea is that I would be able to write such FPU debugging code myself.   
   Somehow I like it that way. :-)   
      
   >   // save area must be aligned on 64-byte boundary   
   ...   
   > { xsave   [edi]       }  db    $0f,$ae,$27   
      
   Both where what I was looking for.  Thanks.   
      
   Alas, I still can't get it to work :   
      
   lea edi,[@@Foo]        ;size is 2000h. Plenty of space.   
   add edi,003Fh          ;[1]   
   and  edi,not 003Fh   
   or    eax,-1                ;Not mentioned in my docs, but ...   
   or    edx,-1   
   db 0Fh,0AEh,27h  ;xsave [edi]   
      
   It still "crashes" ("{program.exe}has encountered a problem and needs to   
   close.  We are sorry for the inconvenience.")   
      
   [1] My "The IA-32 Intel Architecture Software Developer's Manual, Volume 2"   
   mentions an alignment of 16.   
      
   Any ideas ?   
      
   Regards,   
   Rudy Wieser   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca