home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCT0D.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-29
|
419b
|
28 lines
#include <dos.h>
#include <stdio.h>
main()
{
struct REGPACK sregs;
int y,x,numbytes,dx;
union REGS regs;
/* special char - <CR> */
printf("\nEnter DX : ");
scanf("%d",&dx); while(kbhit()) getch();
sregs.r_ax = 0x0D00;
sregs.r_dx = dx;
printf("\nCall - AH : %02X",(sregs.r_ax&0xff00)>>8);
intr(0x14,&sregs);
printf("\nReturn - ES : BX = %04X:%04X",sregs.r_es,sregs.r_bx);
}