/* vim: set filetype=c:
 *
 * general.h86  -  DOS general definitions
 *
 * Copyright (C) 2003-2007 Gero Kuhlmann <gero@gkminix.han.de>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id: general.h86,v 1.5 2007/01/06 18:30:53 gkminix Exp $
 */

#ifndef DOS_GENERAL_H86
#define DOS_GENERAL_H86


/*
 * This file can only get included into target C or assembler source files.
 */
#define GCC_INCLUDE
#include <compiler.h>



/*
 * DOS function interrupts:
 */
#define INT_DOS		0x21		/* main DOS function handler */
#define INT_OUTCHAR	0x29		/* DOS print character routine */
#define INT_MULTI	0x2F		/* DOS multiplex function handler */
#define INT_XMS		0x2F		/* XMS interrupt vector */



/*
 * Definition of reserved file handles.
 */
#define	DOS_RES_HANDLES	5		/* total number of reserved handles */

#define	DOS_RES_STDIN	0		/* stdin file handle */
#define	DOS_RES_STDOUT	1		/* stdout file handle */
#define	DOS_RES_STDERR	2		/* stderr file handle */
#define	DOS_RES_AUX	3		/* AUX device file handle */
#define	DOS_RES_PRN	4		/* PRN device file handle */


#endif

