Date: Sun, 7 Mar 1999 13:14:50 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Wojciech Zabolotny cc: djgpp AT delorie DOT com Subject: Re: HELP! Assembly language dual mode interrupt handler for djgpp program In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 4 Mar 1999, Wojciech Zabolotny wrote: > irq_handler push eax > mov ax,[cs:apps_cs] > mov ds,ax > > However I don't know how to fill the "apps_cs" variable. You probably meant apps_ds, right? Because CS is already set when you enter the handler. Use cs:___djgpp_ds_alias (3 leading underscores), this is what it's there for. You should always use the DS alias, not the DS itself, since the latter is invalidated (by making its limit be 4KB) when a signal is pending. > Particularly the "___djgpp_app_DS" seems to be very promissing. Is it safe > to use it? No, see above. Use the alias.