1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-04-18 00:47:23 +00:00

Implemented ALU, most of Memory state machine.

This commit is contained in:
Josh Dersch
2015-08-20 18:02:01 -07:00
parent 5719ec4815
commit f1ffcb0547
12 changed files with 336 additions and 36 deletions

View File

@@ -0,0 +1,28 @@
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[0xffff];
}
public ushort Read(int address)
{
return _mem[address];
}
public void Load(int address, ushort data)
{
_mem[address] = data;
}
private ushort[] _mem;
}
}