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,391 of 4,675    |
|    wolfgang kern to R.Wieser    |
|    Re: FPU (x87) code debugging.    |
|    07 Aug 21 10:34:10    |
      From: nowhere@nospicedham.never.at              On 06.08.2021 19:11, R.Wieser wrote:              > 2) How do I, for debugging purposes, check the FPU stack ?              not every debug tool supports FPU. I had to write my own debugger       anyway and it uses FXSAVE to show registers and all status bits.              but how did you check 1) FSTCW ? FXAM/r ? FSTENV ? FSTSW AX ?       too many consecutive fstp will cause stack errors.              The FNSTCW instruction does not check for possible floating-point       exceptions before copying the image of the x87 status register.              FCLEX or FXSAVE followed by FINIT work fine for me to clean up.       and FFREE/r is my way to empty a specific register.              I actually hate this stupid stack-up/dn design, an overall ST(n)       would work just fine with much lesser doubtful quirks.       meanwhile we got SSE/AVX and AMD may remove FPU from chip soon.       __       wolfgang              --- 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