home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
sysutl
/
int_util.arc
/
INT.C
< prev
next >
Wrap
Text File
|
1986-12-21
|
1KB
|
34 lines
/*************************************************************
* *
* Interrupt Query Utility *
* Written by Mark C. Peterson *
* Norwich, CT *
* December 21, 1986 *
* This program and GET_INT reside *
* in the public domain. *
* *
*************************************************************/
main (argn, argv)
int argn;
char *argv [];
{
int n;
int temp [ 2 ];
if (argn !=2)
help ();
sscanf (argv [ 1 ], "%x", &n);
if (n > 0xFF || n < 0)
help ();
get_int (n, temp);
printf ("%02X = %04X:%04X ", n, temp [ 0 ], temp [ 1 ]);
}
help ()
{
printf ("The proper syntax for INT.EXE is: INT XX\n");
printf ("Where \"XX\" is a hexidecimal number.");
exit ();
}