EightBitNet/EightBit/MemoryMapping.cs

31 lines
783 B
C#
Raw Normal View History

// <copyright file="MemoryMapping.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace EightBit
{
public class MemoryMapping
{
public MemoryMapping(Memory memory, ushort begin, ushort mask, AccessLevel access)
{
this.Memory = memory;
this.Begin = begin;
this.Mask = mask;
this.Access = access;
}
public MemoryMapping(Memory memory, ushort begin, Mask mask, AccessLevel access)
: this(memory, begin, (ushort)mask, access)
{
}
public Memory Memory { get; set; }
public ushort Begin { get; set; }
public ushort Mask { get; set; }
public AccessLevel Access { get; set; }
}
}