home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCT3.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-29
|
493b
|
35 lines
#include <dos.h>
#include <stdio.h>
main()
{
struct REGPACK sregs;
int y,x,numbytes,dx;
union REGS regs;
/*struct SREGS sregs;*/
/* special char - <CR> */
printf("\nEnter DX : ");
scanf("%d",&dx); while(kbhit()) getch();
printf("Press ESC to Quit, Press any key for more status\n");
while(1)
{
regs.h.ah = 0x03;
regs.x.dx = dx;
int86(0x14,®s,®s);
printf("AH : %02X AL : %02X ",regs.h.ah,regs.h.al);
if(getch() == 0x1b) break;
}
}