mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-12-23 17:31:33 +00:00
00fe5eb0b2
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
31 lines
783 B
C#
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; }
|
|
}
|
|
}
|