Path: blob/master/libmupen64plus/mupen64plus-core/src/r4300/interupt.h
2 views
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *1* Mupen64plus - interupt.h *2* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *3* Copyright (C) 2002 Hacktarux *4* *5* This program is free software; you can redistribute it and/or modify *6* it under the terms of the GNU General Public License as published by *7* the Free Software Foundation; either version 2 of the License, or *8* (at your option) any later version. *9* *10* This program is distributed in the hope that it will be useful, *11* but WITHOUT ANY WARRANTY; without even the implied warranty of *12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *13* GNU General Public License for more details. *14* *15* You should have received a copy of the GNU General Public License *16* along with this program; if not, write to the *17* Free Software Foundation, Inc., *18* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *19* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */2021void compare_interupt(void);22void gen_dp(void);23void init_interupt(void);2425extern int vi_field;26extern unsigned int next_vi;2728// set to avoid savestates/reset if state may be inconsistent29// (e.g. in the middle of an instruction)30extern int interupt_unsafe_state;3132void gen_interupt(void);33void check_interupt(void);3435void translate_event_queue(unsigned int base);36void remove_event(int type);37void add_interupt_event_count(int type, unsigned int count);38void add_interupt_event(int type, unsigned int delay);39unsigned int get_event(int type);40int get_next_event_type(void);4142int save_eventqueue_infos(char *buf);43void load_eventqueue_infos(char *buf);4445#define VI_INT 0x00146#define COMPARE_INT 0x00247#define CHECK_INT 0x00448#define SI_INT 0x00849#define PI_INT 0x01050#define SPECIAL_INT 0x02051#define AI_INT 0x04052#define SP_INT 0x08053#define DP_INT 0x10054#define HW2_INT 0x20055#define NMI_INT 0x40056575859