Date: 10 Aug 2003 16:26:36 +0200 Message-Id: From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: <20030810061007.03017.00001081@mb-m19.aol.com> (sterten@aol.com) Subject: Re: ATT assembler question References: <20030810061007 DOT 03017 DOT 00001081 AT mb-m19 DOT aol DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > 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 > , so I'm checking for the 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.