public static void AddWatchpointHook(this SystemBus sysbus, long address, Width width, Access access, string pythonScript) { var engine = new WatchpointHookPythonEngine(sysbus, pythonScript); sysbus.AddWatchpointHook(address, width, access, true, engine.Hook); }