mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-25 05:02:14 +00:00
24 lines
520 B
C#
24 lines
520 B
C#
using BenchmarkDotNet.Attributes;
|
|
|
|
namespace EightBit.Benchmark
|
|
{
|
|
class SealedBus : Bus
|
|
{
|
|
private readonly Ram _ram = new(0x10000);
|
|
private readonly MemoryMapping _mapping;
|
|
|
|
public SealedBus()
|
|
{
|
|
this._mapping = new(this._ram, 0, Mask.Fifteen, AccessLevel.ReadWrite);
|
|
}
|
|
|
|
public override MemoryMapping Mapping(ushort absolute)
|
|
{
|
|
return this._mapping;
|
|
}
|
|
|
|
public override void Initialize()
|
|
{
|
|
}
|
|
}
|
|
} |