mirror of
https://github.com/livingcomputermuseum/ContrAlto.git
synced 2026-01-20 09:54:35 +00:00
29 lines
526 B
C#
29 lines
526 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Contralto.Memory
|
|
{
|
|
public class Memory : IMemoryMappedDevice
|
|
{
|
|
public Memory()
|
|
{
|
|
_mem = new ushort[0x10000];
|
|
}
|
|
|
|
public ushort Read(int address)
|
|
{
|
|
return _mem[address];
|
|
}
|
|
|
|
public void Load(int address, ushort data)
|
|
{
|
|
_mem[address] = data;
|
|
}
|
|
|
|
private ushort[] _mem;
|
|
}
|
|
}
|