Small control unit FSM optimization with new instruction set encoding