ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/17/15:37:34

Date: Fri, 17 Feb 1995 14:38:12 -0500 (EST)
From: Long Doan <ldoan1 AT osf1 DOT gmu DOT edu>
To: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: interrupt handlers

On Fri, 17 Feb 1995, A.Appleyard wrote:

> I recently found about this interrupt call:-
> AH = 5, CH = xx, CL = yy, int 0x16
> inserts into the keyboard keypress buffer an entry as if you had pressed a key
> with scan code xx, ascii code yy. If yy==0, it is treated as a `special key'
> like F1-F12 etc (which on some read-a-keystrokes read first 0 and then the
> scan code).
> On exit, al = 0 for success, 1 if the keyboard buffer was full.
> 
> I call it thus:-
> 
> int inject(int C){
> _ax=0x500;
> _cx=C<0?((-C)&0xff)<<8:((C&0xff)<<8)+(C&0xff);
> int16();
> return !(_ax&1);}

  You should try bdos () or go32_dpmi_simulate... function calls instead.

+--------------------------------------------------------+
| Long Doan                          ldoan1 AT osf1 DOT gmu DOT edu |
|                                          ld AT netrix DOT com |
+--------------------------------------------------------+


- Raw text -


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