More analysis suggested tidy ups.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-06 23:41:56 +00:00
parent d6d8c4e13c
commit 0e8a530573
9 changed files with 26 additions and 42 deletions

View File

@@ -6,25 +6,20 @@ namespace EightBit
{
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;
this.Memory = memory;
this.Begin = begin;
this.Mask = mask;
this.Access = access;
}
public Memory Memory { get => this.memory; set => this.memory = value; }
public Memory Memory { get; set; }
public ushort Begin { get => this.begin; set => this.begin = value; }
public ushort Begin { get; set; }
public ushort Mask { get => this.mask; set => this.mask = value; }
public ushort Mask { get; set; }
public AccessLevel Access { get => this.access; set => this.access = value; }
public AccessLevel Access { get; set; }
}
}