Mail Archives: djgpp/1999/09/30/13:18:26
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 -