protected virtual byte ReadMemory(ushort addr, bool noContention = false) { var value = Memory[addr]; MemoryAccessLog.Add(new MemoryOp(addr, value, false)); return(value); }
protected virtual void WriteMemory(ushort addr, byte value) { Memory[addr] = value; MemoryAccessLog.Add(new MemoryOp(addr, value, true)); }