N64: Set RDRAM as the main memory

This commit is contained in:
pjgat09 2013-05-06 00:08:36 +00:00
parent 7fb317cc37
commit 468da23558
1 changed files with 9 additions and 8 deletions

View File

@ -204,7 +204,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
}
public IList<MemoryDomain> MemoryDomains { get; private set; }
public MemoryDomain MainMemory { get { return null; } }
public MemoryDomain MainMemory { get; private set; }
bool disposed = false;
public void Dispose()
@ -323,13 +323,13 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
M64TYPE_STRING
};
enum m64p_dbg_memptr_type {
M64P_DBG_PTR_RDRAM = 1,
M64P_DBG_PTR_PI_REG,
M64P_DBG_PTR_SI_REG,
M64P_DBG_PTR_VI_REG,
M64P_DBG_PTR_RI_REG,
M64P_DBG_PTR_AI_REG
enum m64p_dbg_memptr_type {
M64P_DBG_PTR_RDRAM = 1,
M64P_DBG_PTR_PI_REG,
M64P_DBG_PTR_SI_REG,
M64P_DBG_PTR_VI_REG,
M64P_DBG_PTR_RI_REG,
M64P_DBG_PTR_AI_REG
};
//[DllImport(@"..\..\libmupen64plus\mupen64plus-ui-console\projects\msvc11\Release\mupen64plus.dll", CallingConvention = CallingConvention.Cdecl)]
@ -608,6 +608,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
MemoryDomains = new List<MemoryDomain>();
MemoryDomains.Add(new MemoryDomain("RDRAM", 0x400000, Endian.Little, getRDRAMByte, setRDRAMByte));
MainMemory = MemoryDomains[0];
rdram = m64pDebugMemGetPointer(m64p_dbg_memptr_type.M64P_DBG_PTR_RDRAM);