mirror of
https://github.com/mupen64plus/mupen64plus-oldsvn.git
synced 2025-04-02 10:52:35 -04:00
83 lines
3 KiB
C
83 lines
3 KiB
C
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* Mupen64plus - memory.h *
|
|
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
|
|
* Copyright (C) 2008 DarkJeztr *
|
|
* Copyright (C) 2002 davFr *
|
|
* *
|
|
* 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. *
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
#ifndef __DEBUGGER_MEMORY_H__
|
|
#define __DEBUGGER_MEMORY_H__
|
|
|
|
#include "debugger.h"
|
|
|
|
#include "../memory/memory.h"
|
|
#include "../r4300/r4300.h"
|
|
|
|
#define MEM_INVALID 0xFFFFFFFF
|
|
#define MEM_FLAG_READABLE 0x01
|
|
#define MEM_FLAG_WRITABLE 0x02
|
|
|
|
#define MAX_DISASSEMBLY 64
|
|
|
|
enum {
|
|
MEM_NOMEM = 0,
|
|
MEM_NOTHING,
|
|
MEM_RDRAM,
|
|
MEM_RDRAMREG,
|
|
MEM_RSPMEM,
|
|
MEM_RSPREG,
|
|
MEM_RSP,
|
|
MEM_DP,
|
|
MEM_DPS,
|
|
MEM_VI,
|
|
MEM_AI,
|
|
MEM_PI,
|
|
MEM_RI,
|
|
MEM_SI,
|
|
MEM_FLASHRAMSTAT,
|
|
MEM_ROM,
|
|
MEM_PIF,
|
|
MEM_MI
|
|
};
|
|
|
|
void init_host_disassembler(void);
|
|
|
|
int get_instruction( uint32 address, uint32 *ptr_instruction );
|
|
char* get_recompiled_opcode( uint32 address, int index );
|
|
char* get_recompiled_args( uint32 address, int index );
|
|
void* get_recompiled_addr( uint32 address, int index );
|
|
int get_num_recompiled( uint32 address );
|
|
int get_has_recompiled( uint32 address );
|
|
|
|
uint64 read_memory_64(uint32 addr);
|
|
uint64 read_memory_64_unaligned(uint32 addr);
|
|
void write_memory_64(uint32 addr, uint64 value);
|
|
void write_memory_64_unaligned(uint32 addr, uint64 value);
|
|
uint32 read_memory_32(uint32);
|
|
uint32 read_memory_32_unaligned(uint32 addr);
|
|
void write_memory_32(uint32, uint32);
|
|
void write_memory_32_unaligned(uint32 addr, uint32 value);
|
|
uint16 read_memory_16(uint32 addr);
|
|
void write_memory_16(uint32 addr, uint16 value);
|
|
uint8 read_memory_8(uint32 addr);
|
|
void write_memory_8(uint32 addr, uint8 value);
|
|
uint32 get_memory_flags(uint32);
|
|
int get_memory_type(uint32);
|
|
|
|
#endif /* __DEBUGGER_MEMORY_H__ */
|
|
|