home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCT6_FF.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-01
|
510b
|
29 lines
#include <dos.h>
#include <stdio.h>
main()
{
struct REGPACK sregs;
int y,x,numbytes,dx;
char far *cptr;
union REGS regs;
printf("\nEnter DX : ");
scanf("%d",&dx); while(kbhit()) getch();
sregs.r_ax = 0x06ff;
sregs.r_dx = dx;
intr(0x14,&sregs);
printf("\nVersion : %04X ",sregs.r_ax);
printf("\nChannels : %04X ",sregs.r_cx);
cptr = MK_FP(sregs.r_es,sregs.r_bx);
printf("\nName @ %04X:%04X : ",sregs.r_es,sregs.r_bx);
for(x=0;x<8;x++)
printf("%c",*cptr++);
}