This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/intr.c

19 lines
404 B
C

#include <stdio.h>
#include <string.h>
#include <i86.h>
void main() /* Print location of Break Key Vector */
{
union REGPACK regs;
memset( &regs, 0, sizeof(union REGPACK) );
regs.w.ax = 0x3523;
intr( 0x21, &regs );
printf( "Break Key vector is "
#if defined(__386__)
"%x:%lx\n", regs.w.es, regs.x.ebx );
#else
"%x:%x\n", regs.w.es, regs.x.bx );
#endif
}