delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/03/26/10:23:10

Date: Thu, 26 Mar 92 09:24:09 EST
From: DJ Delorie <dj AT ctron DOT com>
To: N DOT Berrington AT ecs DOT southampton DOT ac DOT uk
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Bios problem
Status: O

>int bioskey(int cmd)
>{
>	union REGS in, out;
>	in.h.ah = cmd;
>	in.h.al = 0;
>	int86(0x16,&in,&out);
>	return  out.h.al;
>}

Try using kbhit() and getkey() from libpc.a instead.  I don't recall
off the top of my head, but I think it's the ZERO flag that indicates
a key has been hit.

DJ
dj AT ctron DOT com
Life is a banana.

- Raw text -


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