/** * Mupen64 - interupt.h * Copyright (C) 2002 Hacktarux * * Mupen64 homepage: http://mupen64.emulation64.com * email address: hacktarux@yahoo.fr * * If you want to contribute to the project please contact * me first (maybe someone is already making what you are * planning to do). * * * This program is free software; you can redistribute it and/ * or modify it under the terms of the GNU General Public Li- * cence as published by the Free Software Foundation; either * version 2 of the Licence, or any later version. * * This program is distributed in the hope that it will be use- * ful, but WITHOUT ANY WARRANTY; without even the implied war- * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public Licence for more details. * * You should have received a copy of the GNU General Public * Licence along with this program; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, * USA. * **/ void compare_interupt(); void gen_dp(); void init_interupt(); extern int vi_field; extern unsigned int next_vi; void gen_interupt(); void check_interupt(); void translate_event_queue(unsigned int base); void remove_event(int type); void add_interupt_event_count(int type, unsigned int count); void add_interupt_event(int type, unsigned int delay); unsigned int get_event(int type); int save_eventqueue_infos(char *buf); void load_eventqueue_infos(char *buf); #define NET_INT 0x000 #define VI_INT 0x001 #define COMPARE_INT 0x002 #define CHECK_INT 0x004 #define SI_INT 0x008 #define PI_INT 0x010 #define SPECIAL_INT 0x020 #define AI_INT 0x040 #define SP_INT 0x080 #define DP_INT 0x100 #define HW2_INT 0x200 #define NMI_INT 0x400