/*****************************************************************************

			       XCopilot

	   This code is part of XCopilot, a port of copilot

     Portions of this code are Copyright (C) 1997 Ivan A. Curtis
		       icurtis@radlogic.com.au

The original MS-Windows95 copilot emulator was written by Greg Hewgill.
The following copyright notice appeared on the original copilot sources:

  // Copilot
  // Copyright (c) 1996 Greg Hewgill

 MC68000 Emulation code is from Bernd Schmidt's Unix Amiga Emulator.
       The following copyright notice appeared in those files:

	  Original UAE code Copyright (c) 1995 Bernd Schmidt

This code must not be distributed without these copyright notices intact.

*******************************************************************************
*******************************************************************************

Filename:	custom.h

Description:	Dragonball chip support

Update History:   (most recent first)
   I. Curtis  26-Feb-97 14:28 -- minor mods from win95 copilot version

******************************************************************************/

extern shared_img *customimg;

extern void custom_init(shared_img *shptr);
extern void customreset(void);
extern void maybe_updateisr();
extern int intbase(void);
extern int intlev(void);
extern void dumpcustom(void);
extern void do_cycles(int longtime);
extern int do_api(int api);

extern unsigned long cycles;
extern unsigned long specialflags;

#define SPCFLAG_STOP 2
#define SPCFLAG_INT  8
#define SPCFLAG_BRK  16
#define SPCFLAG_TRACE 64
#define SPCFLAG_DOTRACE 128
#define SPCFLAG_DOINT 256
