#ifdef __cplusplus
extern "C" {
#endif

#include "sdl/dialogs/messagebox.h"

// A ReadLong for StarScream (a mix of intel and motorola ways...)
#define ReadLongSc(a) ((ReadWord(a)<<16) | ReadWord(a+2))
#define WriteLongSc(a,b) WriteWord(a,(b)>>16); WriteWord(a+2,b)

#define ErrorMsg(msg) MessageBox("Error",msg,"OK")
#define IRQ2CTRL_AUTOANIM_STOP		0x08
#define IRQ2CTRL_ENABLE				0x10
#define IRQ2CTRL_LOAD_RELATIVE		0x20
#define IRQ2CTRL_AUTOLOAD_VBLANK	0x40
#define IRQ2CTRL_AUTOLOAD_REPEAT	0x80

extern int neocd_id;

extern UINT8 *neogeo_fix_memory,*video_fix_usage,*video_spr_usage;
extern char neocd_path[1024],neocd_dir[1024];
extern int sfx_volume, music_volume;

void setup_neocd_bios();

extern struct GAME_MAIN game_neocd;

#ifdef __cplusplus
}
#endif
