home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCTFC.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-30
|
546b
|
33 lines
#include <dos.h>
#include <stdio.h>
main()
{
struct REGPACK sregs;
int y,x,numbytes,dx;
union REGS regs;
/*struct SREGS sregs;*/
printf("\nEnter DX : ");
scanf("%d",&dx); while(kbhit()) getch();
printf("\nEnter # bytes : ");
scanf("%x",&numbytes); while(kbhit()) getch();
for(x=0; x<numbytes; x++)
{
regs.h.ah = 0xfc;
regs.x.dx = dx;
printf("\nCall - AH : %02X",regs.h.ah);
int86(0x14,®s,®s);
printf(" Return - AL : %02X = %c AH : %2X ",regs.h.al,regs.h.al,regs.h.ah);
}
}