Date: Thu, 30 Sep 1999 16:04:12 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Alex Mendes da Costa cc: djgpp AT delorie DOT com Subject: Re: More Assembly! In-Reply-To: <37F2F71F.6CBDF17E@virtualis.com> 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, 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?