Mail Archives: djgpp/1995/02/17/15:37:34
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 -