Files
EightBitNet/EightBit.Benchmark/SealedBus.cs
T
Adrian Conlon 9bfd65fbb1 * Update nuget packages
* Namespace z80 a little better
* Add some benchmarks
2026-10-24 21:41:12 +01:00

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()
{
}
}
}