public CH376UsbHostHardware(ICH376Ports ch376Ports) { this.ch = ch376Ports; HardwareReset(); deviceIsConnected = false; SetHostWithoutSofMode(); }
public RookieDrivePortsPlugin(PluginContext context, IDictionary <string, object> pluginConfig) { context.Cpu.MemoryAccess += Cpu_MemoryAccess; chPorts = new CH376PortsViaNoobtocol((string)pluginConfig["serialPortNumber"]); cpu = context.Cpu; slots = context.SlotsSystem; context.Cpu.BeforeInstructionFetch += Cpu_BeforeInstructionFetch; ParseSymbols(@"C:\code\fun\RookieDrive\msx\.sym"); addressesToLog = symbolsToLog.ToDictionary(s => symbolsByName[s], s => s); //cpu.BeforeInstructionExecution += Cpu_BeforeInstructionExecution; }
public RookieDrivePortsPlugin(PluginContext context, IDictionary <string, object> pluginConfig) { context.Cpu.MemoryAccess += Cpu_MemoryAccess; chPorts = UsbServiceProvider.GetCH376Ports(); cpu = context.Cpu; slots = context.SlotsSystem; context.Cpu.BeforeInstructionFetch += Cpu_BeforeInstructionFetch; ParseSymbols(@"C:\code\fun\RookieDrive\msx\.sym"); addressesToLog = symbolsToLog.ToDictionary(s => symbolsByName[s], s => s); //cpu.BeforeInstructionExecution += Cpu_BeforeInstructionExecution; }