home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
FGIN131.ZIP
/
SOURCE.ZIP
/
KEYBIOS.C
< prev
next >
Wrap
Text File
|
1994-01-21
|
662b
|
31 lines
/****************************************************************************\
\****************************************************************************/
/****************************************************************************\
int bios_key(void)
\****************************************************************************/
int bios_key(int cmd)
{
asm xor al,al;
asm mov ah,byte ptr cmd;
asm int 16h;
asm je bk1;
asm test byte ptr cmd,1h;
asm je end;
asm or ax,ax;
asm jne end;
asm mov ax,0FFFFh;
asm jmp end;
bk1: asm test byte ptr cmd,1h;
asm je end;
asm xor ax,ax;
end: return(_AX);
}