2019-02-04 23:52:21 +00:00
|
|
|
|
// <copyright file="MemoryMapping.cs" company="Adrian Conlon">
|
|
|
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
|
|
|
// </copyright>
|
|
|
|
|
|
|
|
|
|
namespace EightBit
|
2019-02-02 15:12:51 +00:00
|
|
|
|
{
|
|
|
|
|
public class MemoryMapping
|
|
|
|
|
{
|
|
|
|
|
private Memory memory;
|
|
|
|
|
private ushort begin;
|
|
|
|
|
private ushort mask;
|
|
|
|
|
private AccessLevel access;
|
|
|
|
|
|
|
|
|
|
public MemoryMapping(Memory memory, ushort begin, ushort mask, AccessLevel access)
|
|
|
|
|
{
|
|
|
|
|
this.memory = memory;
|
|
|
|
|
this.begin = begin;
|
|
|
|
|
this.mask = mask;
|
|
|
|
|
this.access = access;
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-04 23:52:21 +00:00
|
|
|
|
public Memory Memory { get => this.memory; set => this.memory = value; }
|
|
|
|
|
|
|
|
|
|
public ushort Begin { get => this.begin; set => this.begin = value; }
|
|
|
|
|
|
|
|
|
|
public ushort Mask { get => this.mask; set => this.mask = value; }
|
|
|
|
|
|
|
|
|
|
public AccessLevel Access { get => this.access; set => this.access = value; }
|
2019-02-02 15:12:51 +00:00
|
|
|
|
}
|
|
|
|
|
}
|