1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - interupt.h *
3 * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4 * Copyright (C) 2002 Hacktarux *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
22 void compare_interupt(void);
24 void init_interupt(void);
27 extern unsigned int next_vi;
29 // set to avoid savestates/reset if state may be inconsistent
30 // (e.g. in the middle of an instruction)
31 extern int interupt_unsafe_state;
33 void gen_interupt(void);
34 void check_interupt(void);
36 void translate_event_queue(unsigned int base);
37 void remove_event(int type);
38 void add_interupt_event_count(int type, unsigned int count);
39 void add_interupt_event(int type, unsigned int delay);
40 unsigned int get_event(int type);
41 int get_next_event_type(void);
43 int save_eventqueue_infos(char *buf);
44 void load_eventqueue_infos(char *buf);
47 #define COMPARE_INT 0x002
48 #define CHECK_INT 0x004
51 #define SPECIAL_INT 0x020