home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCT22.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-10
|
571b
|
29 lines
#include <dos.h>
#include <stdio.h>
main()
{
struct REGPACK sregs;
union REGS regs;
int y,x,dx,fct;
int far *cnt_ptr;
unsigned char far * flg_ptr, buff[100];
printf("\nEnter DX : ");
scanf("%d",&dx); while(kbhit()) getch();
regs.x.ax = 0x2200; /* AH = fct 20h AL = 0 disable */
printf("\nD)isable E)nable : ");
if(toupper(getch()) == 'E') regs.h.al = 1;
regs.x.dx = dx;
printf("\nCall - AH : %02X AL : %02X",regs.h.ah, regs.h.al);
int86(0x14,®s,®s);
printf("\nReturn - AH : %02X",regs.h.ah);
}