From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6fc74aace6aaa6d707faa91c25612eb9@terzarima.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] fp: stack underflow error From: Charles Forsyth Date: Thu, 1 Jul 2004 21:32:20 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: b27b98c2-eacd-11e9-9e20-41e7f4b1d025 >>convoluted code? what's that comparison for? getting the right answer for unsigned to double conversion. if the integer value is negative, the conversion needs to add 2^32 to adjust it. i haven't looked it up but i imagine that the stcw/ldcw is to set the control word to the right rounding mode for the conversion, because it's in a global machine word not the instruction. the source operand is required to be a memory location.