2014-11-23 16:58:43 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Calculators
|
|
|
|
|
{
|
2015-01-14 21:55:48 +00:00
|
|
|
|
public partial class TI83
|
2014-11-23 16:58:43 +00:00
|
|
|
|
{
|
|
|
|
|
private void SetupMemoryDomains()
|
|
|
|
|
{
|
|
|
|
|
var domains = new List<MemoryDomain>
|
|
|
|
|
{
|
|
|
|
|
new MemoryDomain(
|
|
|
|
|
"Main RAM",
|
|
|
|
|
ram.Length,
|
|
|
|
|
MemoryDomain.Endian.Little,
|
|
|
|
|
addr => ram[addr],
|
|
|
|
|
(addr, value) => ram[addr] = value
|
|
|
|
|
)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
_memoryDomains = new MemoryDomainList(domains);
|
2015-01-14 21:55:48 +00:00
|
|
|
|
(ServiceProvider as BasicServiceProvider).Register<IMemoryDomains>(_memoryDomains);
|
2014-11-23 16:58:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-01-14 21:55:48 +00:00
|
|
|
|
private IMemoryDomains _memoryDomains;
|
2014-11-23 16:58:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|