🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #370

Re: BC 3.0 and 386's

#370
From: Ross Ridge
Date: Tue, 11 Aug 1992 08:45
25 lines
1474 bytes
Ross Ridge <ross@zooid.guild.org> writes:
>I've always understood that under MS-DOS you can't depend on any
>of the '386 registers being preserved.  Anytime I've seen the 32bit
>registers used (eax, edi, ...) it's always been protected inside
>"sti ... cli" instructions to in case some ISR mucks with them.

dstamp@watserv1.uwaterloo.ca (Dave Stampe-Psy+Eng) writes:
>But those are the top bits of a 32-bit register, not a segment register!
>And the loading with a null segment really cannot be anything but 
>deliberate.  It takes about 15 lines of assembley, and switching in
>and out of protected mode to reload a segment descriptor.  So I doubt
>its accidental.

What difference does it make?  All the registers should be saved,
the top bits and the segment registers, but obviously they're not.
It's the same stupid assumption that no other routine will be using
them so there is no need to preserve them.

							Ross Ridge

-- 
Ross Ridge - The Great HTMU					     l/	 //
								    [OO][oo]
ross@zooid.guild.org						    /()\/()/
uunet.ca!zooid!ross						     db	 //
Technical Details
Message-ID: <1992Aug11.084512.7600@zooid.guild.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!geac!zooid!ross
References: <1992Aug10.091447.12146@zooid.guild.org> <BssF9H.L05@watserv1.uwaterloo.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!geac!zooid!ross
From: Ross Ridge <ross@zooid.guild.org>
Subject: Re: BC 3.0 and 386's
Organization: ZOOiD BBS
Date: Tue, 11 Aug 1992 08:45:12 GMT
Message-ID: <1992Aug11.084512.7600@zooid.guild.org>
References: <1992Aug10.091447.12146@zooid.guild.org> <BssF9H.L05@watserv1.uwaterloo.ca>
Lines: 25