Path: blob/master/libmupen64plus/mupen64plus-rsp-hle/src/hle.h
2 views
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *1* Mupen64plus-rsp-hle - hle.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* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */2021#ifndef HLE_H22#define HLE_H2324#define M64P_PLUGIN_PROTOTYPES 125#include "m64p_plugin.h"2627#define RSP_HLE_VERSION 0x02000028#define RSP_PLUGIN_API_VERSION 0x0200002930#ifdef M64P_BIG_ENDIAN31#define S 032#define S16 033#define S8 034#else35#define S 136#define S16 237#define S8 338#endif3940// types41typedef unsigned char u8;42typedef unsigned short u16;43typedef unsigned int u32;44typedef unsigned long long u64;4546typedef signed char s8;47typedef signed short s16;48typedef signed int s32;49typedef signed long long s64;5051extern RSP_INFO rsp;5253typedef struct54{55unsigned int type;56unsigned int flags;5758unsigned int ucode_boot;59unsigned int ucode_boot_size;6061unsigned int ucode;62unsigned int ucode_size;6364unsigned int ucode_data;65unsigned int ucode_data_size;6667unsigned int dram_stack;68unsigned int dram_stack_size;6970unsigned int output_buff;71unsigned int output_buff_size;7273unsigned int data_ptr;74unsigned int data_size;7576unsigned int yield_data_ptr;77unsigned int yield_data_size;78} OSTask_t;7980static const OSTask_t * const get_task()81{82return (OSTask_t*)(rsp.DMEM + 0xfc0);83}8485void DebugMessage(int level, const char *message, ...);8687#endif88899091