Mail Archives: djgpp/1999/09/30/13:18:26

Date: Thu, 30 Sep 1999 16:04:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Alex Mendes da Costa <alexmdc AT virtualis DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: More Assembly!
In-Reply-To: <>
Message-ID: <Pine.SUN.3.91.990930160122.21365H-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 30 Sep 1999, Alex Mendes da Costa wrote:

> Sorry I keep asking questions!! I was wondering how its possible to load
> a bit of assembly code that has been written in the inline assembler
> into a place in memory, for use in an interrupt.

Not at run time.  You need to assemble the code separately, and put into 
your program an array of bytes that are the opcodes of the handler.  Then 
use memcpy or whatever to copy them.

But I really don't understand why do you need to go to such lengths?  
Can't you simply install your function, however it is written, as an 
interrupt handler?  (Section 18.9 of the DJGPP FAQ tells you how.)  Why 
do you need to copy it somewhere?

- Raw text -

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