Mail Archives: djgpp/1997/03/09/10:51:00
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).
- Raw text -