Date: Sun, 9 Mar 1997 17:35:19 +0200 (IST) From: Eli Zaretskii To: Marc Mueller cc: djgpp AT delorie DOT com Subject: Re: How to get DS in int handler ? In-Reply-To: <5fn1gn$9a5@fsuj19.rz.uni-jena.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 6 Mar 1997, Marc Mueller wrote: > The handler must read some variables situated in the .data section. But I > can't assume DS points to MY .data section during the execution of > my handler, can I ? Why not? I think when a hardware interrupt causes your handler to be called, DS holds the selector for accessing your data. > How can I load DS with the right selector (I use TASM) ? Huh? TASM for DJGPP? I didn't know TASM can generate COFF object files, are you sure it can? > What does _my_ds() return ? The current entry of DS or the entry DS should > have ? It returns the current value in the DS register (it is so easy to look that up in the sources that I'm surprised you even ask).