delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/10/09:27:49

Date: 10 Aug 2003 16:26:36 +0200
Message-Id: <ullu1mvvn.fsf@elta.co.il>
From: Eli Zaretskii <eliz AT elta DOT co DOT il>
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: <uvft612b8 DOT fsf AT elta DOT co DOT il> <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

> 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 -


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