home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCT6_0.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-29
|
619b
|
31 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 = 0x0600;
sregs.r_dx = dx;
printf("Call - AH : %02X AL : %02X",(sregs.r_ax&0xff00)>>8,
(sregs.r_ax&0xff));
intr(0x14,&sregs);
printf("\nReturn - AH : %02X AL : %02X ES:BX - %04X:%04X",
(sregs.r_ax&0xff00)>>8, (sregs.r_ax&0xff),sregs.r_es,sregs.r_bx);
printf("\nName : ");
cptr = MK_FP(sregs.r_es,sregs.r_bx);
for(x=0;x<8;x++)
printf("%c",*cptr++);
}