mirror of
https://github.com/mupen64plus/mupen64plus-oldsvn.git
synced 2025-04-02 10:52:35 -04:00
53 lines
2.3 KiB
C
53 lines
2.3 KiB
C
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* 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 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 get_next_event_type();
|
|
|
|
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
|
|
|