Pergunta de entrevista da empresa CEVA

asked to implement a machine language function with given imaginary machine orders.