cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/09/10:51:00

Date: Sun, 9 Mar 1997 17:35:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Marc Mueller <s5muma AT rz DOT uni-jena DOT de>
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: <Pine.SUN.3.91.970309173454.26812E-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019