public override T Read(long offset) { var originalValue = OriginalMethod(offset); Peripheral.DebugLog("Read{0} from 0x{1:X}{3}, returned 0x{2:X}.", Name, offset, originalValue, mapper.ToString(offset, " ({0})")); return(originalValue); }
public override T Read(long offset) { var originalValue = OriginalMethod(offset); Peripheral.DebugLog(machine.SystemBus.DecorateWithCPUNameAndPC($"Read{Name} from 0x{offset:X}{(mapper.ToString(offset, " ({0})"))}, returned 0x{originalValue:X}.")); return(originalValue); }
public override void Write(long offset, T value) { Peripheral.DebugLog("Write{0} to 0x{1:X}{3}, value 0x{2:X}.", Name, offset, value, mapper.ToString(offset, " ({0})")); OriginalMethod(offset, value); }
public override void Write(long offset, T value) { Peripheral.DebugLog(machine.SystemBus.DecorateWithCPUNameAndPC($"Write{Name} to 0x{offset:X}{(mapper.ToString(offset, " ({0})"))}, value 0x{value:X}.")); OriginalMethod(offset, value); }