Method and device for generating instruction words for the control of functional units in a processor