N64: Set RDRAM as the main memory
This commit is contained in:
parent
7fb317cc37
commit
468da23558
|
@ -204,7 +204,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
|
||||||
}
|
}
|
||||||
|
|
||||||
public IList<MemoryDomain> MemoryDomains { get; private set; }
|
public IList<MemoryDomain> MemoryDomains { get; private set; }
|
||||||
public MemoryDomain MainMemory { get { return null; } }
|
public MemoryDomain MainMemory { get; private set; }
|
||||||
|
|
||||||
bool disposed = false;
|
bool disposed = false;
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
@ -323,13 +323,13 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
|
||||||
M64TYPE_STRING
|
M64TYPE_STRING
|
||||||
};
|
};
|
||||||
|
|
||||||
enum m64p_dbg_memptr_type {
|
enum m64p_dbg_memptr_type {
|
||||||
M64P_DBG_PTR_RDRAM = 1,
|
M64P_DBG_PTR_RDRAM = 1,
|
||||||
M64P_DBG_PTR_PI_REG,
|
M64P_DBG_PTR_PI_REG,
|
||||||
M64P_DBG_PTR_SI_REG,
|
M64P_DBG_PTR_SI_REG,
|
||||||
M64P_DBG_PTR_VI_REG,
|
M64P_DBG_PTR_VI_REG,
|
||||||
M64P_DBG_PTR_RI_REG,
|
M64P_DBG_PTR_RI_REG,
|
||||||
M64P_DBG_PTR_AI_REG
|
M64P_DBG_PTR_AI_REG
|
||||||
};
|
};
|
||||||
|
|
||||||
//[DllImport(@"..\..\libmupen64plus\mupen64plus-ui-console\projects\msvc11\Release\mupen64plus.dll", CallingConvention = CallingConvention.Cdecl)]
|
//[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 = new List<MemoryDomain>();
|
||||||
MemoryDomains.Add(new MemoryDomain("RDRAM", 0x400000, Endian.Little, getRDRAMByte, setRDRAMByte));
|
MemoryDomains.Add(new MemoryDomain("RDRAM", 0x400000, Endian.Little, getRDRAMByte, setRDRAMByte));
|
||||||
|
MainMemory = MemoryDomains[0];
|
||||||
|
|
||||||
rdram = m64pDebugMemGetPointer(m64p_dbg_memptr_type.M64P_DBG_PTR_RDRAM);
|
rdram = m64pDebugMemGetPointer(m64p_dbg_memptr_type.M64P_DBG_PTR_RDRAM);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue