Category : Files from Magazines
Archive   : TSRPLUS.ZIP
Filename : INTERUPT.H

 
Output of file : INTERUPT.H contained in archive : TSRPLUS.ZIP

/* ----------- interupt.h ------------ */

#ifndef INTERUPT_H
#define INTERUPT_H

void VideoInt(void);

#define TIMER 8
#define KYBRD 9
#define COM1 0x0c
#define COM2 0x0b
#define VIDEO 0x10
#define PRINTER 0x17
#define DOS 0x21

#define KBDATA 0x60
#define KBCONTROL 0x61
#define KBSTATUS 0x64

#define ZEROFLAG 0x40
#define CARRYBIT 1

/* --- vectors ---- */
#define DISK 0x13
#define CTRLBRK 0x1b
#define INT28 0x28
#define CRIT 0x24
#define CTRLC 0x23
#define MOUSE 0x33

/* ------- the interrupt function registers -------- */
typedef struct {
int bp,di,si,ds,es,dx,cx,bx,ax,ip,cs,fl;
} IREGS;

#endif