public void OpenMemo(string path) { using (var memo = File.OpenRead(path)) { EjectAll(); MemoPath = path; IndexChanged?.Invoke(this, EventArgs.Empty); _mem.OpenMemo(memo); } _cpu.Reset(); }
public Machine(ISound sound, IM6809 cpu, IInput input, IMemory memory) { _mem = memory; Sound = sound; Input = input; _cpu = cpu; cpu.Reset(); Screen = new Screen(_mem); }