home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DIGIPROG.ZIP
/
FCT1B.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-30
|
729b
|
38 lines
#include <dos.h>
#include <stdio.h>
main()
{
struct REGPACK sregs;
int y,x,numbytes,dx;
union REGS regs;
printf("\nEnter DX : ");
scanf("%d",&dx); while(kbhit()) getch();
Choose:
printf("\nA) Get TX Low Water ");
printf("\nB) Get RX Low Water ");
printf("\nC) Get RX High Water : ");
switch(toupper(getch()))
{
case 'A' : y=0; break;
case 'B' : y=1; break;
case 'C' : y=2; break;
default : goto Choose;
}
regs.x.ax = 0x1b00+y;
regs.x.dx = dx;
printf("\nCall - AH : %02X AL : %02X",regs.h.ah, regs.h.al);
int86(0x14,®s,®s);
printf("\nReturn - AX : %04X BX : %04X DH : %02X ZF : %d",regs.x.ax,
regs.x.bx,regs.h.dh,(regs.x.flags&0x40)>>6);
}