Mail Archives: djgpp/2003/08/10/09:27:49
> From: sterten AT aol DOT com (Sterten)
> Newsgroups: comp.os.msdos.djgpp
> Date: 10 Aug 2003 10:10:07 GMT
>
> I want the user to be able to interrupt the program with
> <esc> , so I'm checking for the <esc> key every millisecond.
In that case, use the function `select' that can see if input is
available within a certain timeout value.
> I think I'll go back to the method in old days with homecomputers:
> create a big string in your program and poke the machine-code
> instructions directly into it, then jump to that address.
> Although, I'm not sure whether that's still possible with protected mode.
> And then, how do I get the actual address within the program
> and jump to there ?
> And does it work for other compilers too ?
These are all important questions with non-trivial answers. For that
reason, I'd suggest to strive to find a C way of doing that.
- Raw text -