X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-core%2Fsrc%2Fr4300%2Finterupt.h;fp=source%2Fmupen64plus-core%2Fsrc%2Fr4300%2Finterupt.h;h=519913234ebddcb3d28bec9635d7a5939eb71988;hb=451ab91e3827a6384981b3300e2a7000d2eaba58;hp=0000000000000000000000000000000000000000;hpb=a2ab25365b5b0dddbee476d695d8a31151407581;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-core/src/r4300/interupt.h b/source/mupen64plus-core/src/r4300/interupt.h new file mode 100644 index 0000000..5199132 --- /dev/null +++ b/source/mupen64plus-core/src/r4300/interupt.h @@ -0,0 +1,57 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Mupen64plus - interupt.h * + * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * + * Copyright (C) 2002 Hacktarux * + * * + * 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 * + * (at your option) 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +void compare_interupt(void); +void gen_dp(void); +void init_interupt(void); + +extern int vi_field; +extern unsigned int next_vi; + +// set to avoid savestates/reset if state may be inconsistent +// (e.g. in the middle of an instruction) +extern int interupt_unsafe_state; + +void gen_interupt(void); +void check_interupt(void); + +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 get_next_event_type(void); + +int save_eventqueue_infos(char *buf); +void load_eventqueue_infos(char *buf); + +#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 +