示例#1
0
        protected virtual byte ReadMemory(ushort addr, bool noContention = false)
        {
            var value = Memory[addr];

            MemoryAccessLog.Add(new MemoryOp(addr, value, false));
            return(value);
        }
示例#2
0
 protected virtual void WriteMemory(ushort addr, byte value)
 {
     Memory[addr] = value;
     MemoryAccessLog.Add(new MemoryOp(addr, value, true));
 }