1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus-rsp-hle - hle.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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25 #define M64P_PLUGIN_PROTOTYPES 1
26 #include "m64p_plugin.h"
28 #define RSP_HLE_VERSION 0x020000
29 #define RSP_PLUGIN_API_VERSION 0x020000
31 #ifdef M64P_BIG_ENDIAN
42 typedef unsigned char u8;
43 typedef unsigned short u16;
44 typedef unsigned int u32;
45 typedef unsigned long long u64;
47 typedef signed char s8;
48 typedef signed short s16;
49 typedef signed int s32;
50 typedef signed long long s64;
59 unsigned int ucode_boot;
60 unsigned int ucode_boot_size;
63 unsigned int ucode_size;
65 unsigned int ucode_data;
66 unsigned int ucode_data_size;
68 unsigned int dram_stack;
69 unsigned int dram_stack_size;
71 unsigned int output_buff;
72 unsigned int output_buff_size;
74 unsigned int data_ptr;
75 unsigned int data_size;
77 unsigned int yield_data_ptr;
78 unsigned int yield_data_size;
81 static inline const OSTask_t * const get_task()
83 return (OSTask_t*)(rsp.DMEM + 0xfc0);
86 void DebugMessage(int level, const char *message, ...);