delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/06/15:35:39

From: s5muma AT rz DOT uni-jena DOT de (Marc Mueller)
Newsgroups: comp.os.msdos.djgpp
Subject: How to get DS in int handler ?
Date: 6 Mar 1997 18:13:43 GMT
Organization: Friedrich-Schiller-University Jena, Germany
Lines: 21
Message-ID: <5fn1gn$9a5@fsuj19.rz.uni-jena.de>
NNTP-Posting-Host: fsuj53.rz.uni-jena.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm intended to write a hardware interrupt handler.

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 ?

How can I load DS with the right selector (I use TASM) ?

      mov   ax,@data
      mov   ds,ax
causes an exception.

What does _my_ds() return ? The current entry of DS or the entry DS should
have ?


Thanks in advance,


   Marc

- Raw text -


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