Implement reset linear and end linear instructions.