From: REMOVEai@cej.se (Anders Isaksson) Subject: Re: 8087 control word Date: 06 Jun 2000 00:00:00 GMT Message-ID: <393cf67b.2247014055@news1.telia.com> References: <20000606025051.09830.00000010@nso-ba.aol.com> X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 960300279 62.20.228.15 (Tue, 06 Jun 2000 16:04:39 MET DST) Organization: C E Johansson AB NNTP-Posting-Date: Tue, 06 Jun 2000 16:04:39 MET DST Newsgroups: comp.lang.pascal.delphi.misc On 06 Jun 2000 06:50:51 GMT, alanglloyd@aol.com (AlanGLLoyd) wrote: >In article , Jud McCranie > writes: > >>Now if I could just get a list of the basic settings of the 8087 >>control word. Anyone have a reference that is easily >>accessible? > >Isn't that what Delphi declares as Default8087CW = $1332, or do you mean the >impact of changing these ? > >Alan Lloyd >alanglloyd@aol.com Copied from a post in 'borland.public.delphi.basm' by Steve Schafer: (Fix font recommended) F E D C B A 9 8 7 6 5 4 3 2 1 0 | | | | | | | | | | | | | | | | | | | | | | | +-- invalid operation mask | | | | | | | | | | +---- denormalized operand mask | | | | | | | | | +------ zero divide mask | | | | | | | | +-------- overflow mask | | | | | | | +---------- underflow mask | | | | | | +------------ precision mask | | | | | | | | | | | +---------------- interrupt enable/disable | | | | | 0 = enabled; 1 = disabled | | | | | | | | +-+------------------ precision control | | | 00 = 24 bits; 01 = reserved | | | 10 = 53 bits; 11 = 64 bits | | | | +-+---------------------- rounding control | 00 = round to nearest or even | 01 = round towards -infinity | 10 = round towards +infinity | 11 = truncate towards zero | +-------------------------- infinity control 0 = projective; 1 = affine (8087/80287 only) The default Delphi control word, $1332, sets: affine infinity round to nearest or even 64 bits precision interrupts enabled precision, underflow and denormalized operand exceptions masked ------------------------------------ Anders Isaksson, Sweden BlockCAD: http://user.tninet.se/~hbh828t/proglego.htm Gallery: http://user.tninet.se/~hbh828t/gallery.htm