home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCT18.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-30
|
504b
|
28 lines
#include <dos.h>
#include <stdio.h>
main()
{
struct REGPACK sregs;
int y,x,numbytes,dx;
union REGS regs;
printf("\nEnter DX : ");
scanf("%d",&dx); while(kbhit()) getch();
regs.h.al = 1; /* assume resume */
printf("\nP)ause R)esume : ");
if(toupper(getch()) == 'P')
regs.h.al = 0;
regs.h.ah = 0x18;
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);
}