home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FreeWare Collection 2
/
FreeSoftwareCollection2pd199x-jp.img
/
ms_dos
/
fmgraph
/
g_gdrwpg.c
< prev
next >
Wrap
Text File
|
1990-06-14
|
350b
|
20 lines
#include <stdio.h>
#include <dos.h>
extern unsigned char gds_fshift;
extern unsigned gds_wrkoff;
extern unsigned gds_wrkseg;
int g_getdrawpage(void)
{
union REGS reg;
struct SREGS seg;
segread(&seg);
reg.h.ah=gds_fshift+0x0b;
reg.x.bx=gds_wrkoff;
seg.es=gds_wrkseg;
int86x(0x92,®,®,&seg);
return (int)reg.h.al;
}