EightBitNet/EightBit/MemoryMapping.cs
Adrian Conlon 00fe5eb0b2 Overloaded MemoryMapping constructor, to make life a little easier...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-03-10 11:34:29 +00:00

31 lines
783 B
C#

// <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; }
}
}