blob: 108b9e877c713d0bd10b40f94b3ec8f10929f041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "fossil.h"
#include <dos.h>
#include <stdlib.h>
unsigned char F_Peek(void)
{
union REGS regs;
regs.h.ah = 0x0C;
regs.x.dx = (unsigned char) port;
int86(FOSSIL_INT, ®s, ®s);
if(regs.x.ax == 0xFFFF)
return(FALSE);
return (regs.h.al);
}
|